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

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: Move over to FilePathWatcher 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 504570b6bac6988128800a00d0a5efc9680b8998..a6f92cab9009df0df335fad79af617bdd20e916e 100644
--- a/chrome/common/service_process_util_posix.cc
+++ b/chrome/common/service_process_util_posix.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -108,6 +108,13 @@ bool ServiceProcessState::SignalReady(
PLOG(ERROR) << "pipe";
return false;
}
+#if defined(OS_MACOSX)
+ state_->state_ = this;
+ message_loop_proxy->PostTask(FROM_HERE,
+ NewRunnableMethod(state_,
+ &ServiceProcessState::StateData::WatchExecutable,
+ shutdown_task));
+#endif // OS_MACOSX
message_loop_proxy->PostTask(FROM_HERE,
NewRunnableMethod(state_, &ServiceProcessState::StateData::SignalReady));
return true;

Powered by Google App Engine
This is Rietveld 408576698