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

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: 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..0dd0a8e8c488758538c7848ae9adc49c0297da53 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(shutdown_task)) {
return false;
}
-#endif // OS_LINUX
+
state_->shut_down_monitor_.reset(
new ServiceProcessShutdownMonitor(shutdown_task));
if (pipe(state_->sockets_) < 0) {
« base/file_path_component_watcher_unittest.cc ('K') | « chrome/common/service_process_util_posix.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698