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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/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 22976865c1f13535f2f71eb8f67fcd70c8f98974..e23c94b56a2bee92529dc197315ed378ecfc7018 100644
--- a/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc
@@ -18,6 +18,7 @@ namespace extensions {
namespace {
+#if !defined(OS_ANDROID)
base::FilePath FindManifestInDir(int dir_key, const std::string& host_name) {
base::FilePath base_path;
if (PathService::Get(dir_key, &base_path)) {
@@ -27,6 +28,7 @@ base::FilePath FindManifestInDir(int dir_key, const std::string& host_name) {
}
return base::FilePath();
}
+#endif
} // namespace
@@ -36,6 +38,7 @@ base::FilePath NativeProcessLauncher::FindManifest(
bool allow_user_level_hosts,
std::string* error_message) {
base::FilePath result;
+#if !defined(OS_ANDROID)
if (allow_user_level_hosts)
result = FindManifestInDir(chrome::DIR_USER_NATIVE_MESSAGING, host_name);
if (result.empty())
@@ -43,7 +46,7 @@ base::FilePath NativeProcessLauncher::FindManifest(
if (result.empty())
*error_message = "Can't find native messaging host " + host_name;
-
+#endif
return result;
}

Powered by Google App Engine
This is Rietveld 408576698