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

Unified Diff: chrome/common/service_process_util_posix.h

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.h
diff --git a/chrome/common/service_process_util_posix.h b/chrome/common/service_process_util_posix.h
index 42b0a31564ce802213d01781fb7e23e7ea759eaf..8f01faa4f1cccdb1159fbc9e5c2e77a49de8b192 100644
--- a/chrome/common/service_process_util_posix.h
+++ b/chrome/common/service_process_util_posix.h
@@ -20,7 +20,9 @@ MultiProcessLock* TakeServiceRunningLock(bool waiting);
#endif // OS_LINUX
#if defined(OS_MACOSX)
+#include "base/file_path_component_watcher.h"
#include "base/mac/scoped_cftyperef.h"
+
class CommandLine;
CFDictionaryRef CreateServiceProcessLaunchdPlist(CommandLine* cmd_line,
bool for_auto_launch);
@@ -58,6 +60,7 @@ struct ServiceProcessState::StateData
#if defined(OS_MACOSX)
base::mac::ScopedCFTypeRef<CFDictionaryRef> launchd_conf_;
+ base::FilePathComponentWatcher executable_watcher_;
#endif // OS_MACOSX
#if defined(OS_LINUX)
scoped_ptr<MultiProcessLock> initializing_lock_;

Powered by Google App Engine
This is Rietveld 408576698