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..25a72c3ee708204461173756896f26adef3a1fea 100644 |
--- a/chrome/common/service_process_util_linux.cc |
+++ b/chrome/common/service_process_util_linux.cc |
@@ -7,9 +7,11 @@ |
#include <signal.h> |
#include <unistd.h> |
+#include "base/base_paths.h" |
#include "base/command_line.h" |
#include "base/file_util.h" |
#include "base/logging.h" |
+#include "base/path_service.h" |
#include "base/threading/platform_thread.h" |
#include "chrome/common/auto_start_linux.h" |
#include "chrome/common/multi_process_lock.h" |
@@ -67,6 +69,18 @@ bool ForceServiceProcessShutdown(const std::string& version, |
return true; |
} |
+// Gets the name of the service process IPC channel. |
+// Returns an absolute path as required. |
+IPC::ChannelHandle GetServiceProcessChannel() { |
+ FilePath temp_dir; |
+ PathService::Get(base::DIR_TEMP, &temp_dir); |
+ std::string pipe_name = GetServiceProcessScopedVersionedName("_service_ipc"); |
+ std::string pipe_path = temp_dir.Append(pipe_name).value(); |
+ return pipe_path; |
+} |
+ |
+ |
+ |
bool CheckServiceProcessReady() { |
scoped_ptr<MultiProcessLock> running_lock(TakeServiceRunningLock(false)); |
return running_lock.get() == NULL; |