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

Unified Diff: chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc

Issue 12465023: Change native messaging paths on OSX to /Library/Google/Chrome/NativeMessagingHosts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc b/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
index 33f698b66994c502581423cffa8089c0b0c82bb7..411fb02a23a311dfcf8825a4ad27c47400308a54 100644
--- a/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
@@ -16,10 +16,14 @@ namespace extensions {
namespace {
const char kNativeMessagingDirectory[] =
-#if defined(OS_MACOSX)
- "/Library/Chrome/NativeMessagingHosts";
-#else
+#if defined(OFFICIAL_BUILD) && defined(OS_MACOSX)
+ "/Library/Google/Chrome/NativeMessagingHosts";
+#elif defined(OFFICIAL_BUILD) && !defined(OS_MACOSX)
"/etc/opt/chrome/native-messaging-hosts";
+#elif !defined(OFFICIAL_BUILD) && defined(OS_MACOSX)
+ "/Library/Application Support/Chromium/NativeMessagingHosts";
+#else
+ "/etc/chromium/native-messaging-hosts";
#endif
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698