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; |
} |