@@ -76,18 +76,18 @@ index 0d7c1db6489d95a40c66808c3f838b0740e46ff6..eec994c4252f17d9c9c41e66d5dae650
7676
7777 #if defined(OS_MAC)
7878diff --git a/chrome/browser/process_singleton_posix.cc b/chrome/browser/process_singleton_posix.cc
79- index 4547eb8563e1af57aad991d9d1e2cf02c778380a..a04d139f958a7aaef9b96e8c29317ccf7c97f009 100644
79+ index f9f5a2a2240b8249f81e9fe95209ef651a09e88e..3dffe87e6a561826e7f90bce9727d830ce1c99be 100644
8080--- a/chrome/browser/process_singleton_posix.cc
8181+++ b/chrome/browser/process_singleton_posix.cc
82- @@ -80 ,6 +80 ,7 @@
82+ @@ -82 ,6 +82 ,7 @@
8383 #include "base/strings/stringprintf.h"
8484 #include "base/strings/sys_string_conversions.h"
8585 #include "base/strings/utf_string_conversions.h"
8686+ #include "base/task/post_task.h"
8787 #include "base/threading/platform_thread.h"
8888 #include "base/threading/thread_task_runner_handle.h"
8989 #include "base/time/time.h"
90- @@ -95 ,9 +96 ,11 @@
90+ @@ -97 ,9 +98 ,11 @@
9191 #include "net/base/network_interfaces.h"
9292 #include "ui/base/l10n/l10n_util.h"
9393
@@ -99,7 +99,7 @@ index 4547eb8563e1af57aad991d9d1e2cf02c778380a..a04d139f958a7aaef9b96e8c29317ccf
9999
100100 #if defined(TOOLKIT_VIEWS) && \
101101 (defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
102- @@ -289 ,6 +292 ,9 @@ bool SymlinkPath(const base::FilePath& target, const base::FilePath& path) {
102+ @@ -348 ,6 +351 ,9 @@ bool SymlinkPath(const base::FilePath& target, const base::FilePath& path) {
103103 bool DisplayProfileInUseError(const base::FilePath& lock_path,
104104 const std::string& hostname,
105105 int pid) {
@@ -109,15 +109,15 @@ index 4547eb8563e1af57aad991d9d1e2cf02c778380a..a04d139f958a7aaef9b96e8c29317ccf
109109 std::u16string error = l10n_util::GetStringFUTF16(
110110 IDS_PROFILE_IN_USE_POSIX, base::NumberToString16(pid),
111111 base::ASCIIToUTF16(hostname));
112- @@ -308 ,6 +314 ,7 @@ bool DisplayProfileInUseError(const base::FilePath& lock_path,
112+ @@ -367 ,6 +373 ,7 @@ bool DisplayProfileInUseError(const base::FilePath& lock_path,
113113
114114 NOTREACHED();
115115 return false;
116116+ #endif
117117 }
118118
119119 bool IsChromeProcess(pid_t pid) {
120- @@ -348 ,6 +355 ,21 @@ bool CheckCookie(const base::FilePath& path, const base::FilePath& cookie) {
120+ @@ -407 ,6 +414 ,21 @@ bool CheckCookie(const base::FilePath& path, const base::FilePath& cookie) {
121121 return (cookie == ReadLink(path));
122122 }
123123
@@ -139,7 +139,7 @@ index 4547eb8563e1af57aad991d9d1e2cf02c778380a..a04d139f958a7aaef9b96e8c29317ccf
139139 bool ConnectSocket(ScopedSocket* socket,
140140 const base::FilePath& socket_path,
141141 const base::FilePath& cookie_path) {
142- @@ -729 ,6 +751 ,10 @@ ProcessSingleton::ProcessSingleton(
142+ @@ -788 ,6 +810 ,10 @@ ProcessSingleton::ProcessSingleton(
143143
144144 ProcessSingleton::~ProcessSingleton() {
145145 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
@@ -150,7 +150,7 @@ index 4547eb8563e1af57aad991d9d1e2cf02c778380a..a04d139f958a7aaef9b96e8c29317ccf
150150 }
151151
152152 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() {
153- @@ -897 ,6 +923 ,20 @@ ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() {
153+ @@ -956 ,6 +982 ,20 @@ ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() {
154154 base::Seconds(kTimeoutInSeconds));
155155 }
156156
@@ -171,7 +171,7 @@ index 4547eb8563e1af57aad991d9d1e2cf02c778380a..a04d139f958a7aaef9b96e8c29317ccf
171171 ProcessSingleton::NotifyResult
172172 ProcessSingleton::NotifyOtherProcessWithTimeoutOrCreate(
173173 const base::CommandLine& command_line,
174- @@ -999 ,14 +1039 ,32 @@ bool ProcessSingleton::Create() {
174+ @@ -1055 ,14 +1095 ,32 @@ bool ProcessSingleton::Create() {
175175 #endif
176176 }
177177
@@ -209,7 +209,7 @@ index 4547eb8563e1af57aad991d9d1e2cf02c778380a..a04d139f958a7aaef9b96e8c29317ccf
209209 // Check that the directory was created with the correct permissions.
210210 int dir_mode = 0;
211211 CHECK(base::GetPosixFilePermissions(socket_dir_.GetPath(), &dir_mode) &&
212- @@ -1046 ,10 +1104 ,13 @@ bool ProcessSingleton::Create() {
212+ @@ -1105 ,10 +1163 ,13 @@ bool ProcessSingleton::Create() {
213213 if (listen(sock, 5) < 0)
214214 NOTREACHED() << "listen failed: " << base::safe_strerror(errno);
215215
0 commit comments