Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: chrome/common/service_process_util_posix.cc

Issue 6660001: Getting service process on Mac to handle having things moved/changed underneath it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed up phajdan's comments, got things working properly Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/service_process_util_posix.cc
diff --git a/chrome/common/service_process_util_posix.cc b/chrome/common/service_process_util_posix.cc
index 189fd7f27fd298da4ddd1dd1dae42e829c151735..fc1aee25ec586f57c587b353aa5836b6462705e1 100644
--- a/chrome/common/service_process_util_posix.cc
+++ b/chrome/common/service_process_util_posix.cc
@@ -96,12 +96,10 @@ bool ServiceProcessState::SignalReady(
CHECK(state_);
CHECK_EQ(g_signal_socket, -1);
-#if defined(OS_LINUX)
- state_->running_lock_.reset(TakeServiceRunningLock(true));
- if (state_->running_lock_.get() == NULL) {
+ if (!SignalReadyPlatformSpecific()) {
return false;
}
-#endif // OS_LINUX
+
state_->shut_down_monitor_.reset(
new ServiceProcessShutdownMonitor(shutdown_task));
if (pipe(state_->sockets_) < 0) {

Powered by Google App Engine
This is Rietveld 408576698