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

Unified Diff: chrome/common/service_process_util_linux.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_linux.cc
diff --git a/chrome/common/service_process_util_linux.cc b/chrome/common/service_process_util_linux.cc
index d51654b511565d1a165b9d43fef7a32800920bf6..4e36154ef9ecbe37714235fe57f77533613fd01e 100644
--- a/chrome/common/service_process_util_linux.cc
+++ b/chrome/common/service_process_util_linux.cc
@@ -77,6 +77,14 @@ bool ServiceProcessState::TakeSingletonLock() {
return state_->initializing_lock_.get();
}
+bool ServiceProcessState::SignalReadyPlatformSpecific() {
+ state_->running_lock_.reset(TakeServiceRunningLock(true));
+ if (state_->running_lock_.get() == NULL) {
+ return false;
+ }
+ return true;
+}
+
bool ServiceProcessState::AddToAutoRun() {
DCHECK(autorun_command_line_.get());
#if defined(GOOGLE_CHROME_BUILD)

Powered by Google App Engine
This is Rietveld 408576698