Index: chrome/browser/browser_process_impl.cc |
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc |
index c379704ad6f35baba5ba9319cc9a0d1650a7700b..b1787211ef495be9e5e441b365b9501754c303da 100644 |
--- a/chrome/browser/browser_process_impl.cc |
+++ b/chrome/browser/browser_process_impl.cc |
@@ -29,7 +29,6 @@ |
#include "chrome/browser/chrome_content_browser_client.h" |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/component_updater/chrome_component_updater_configurator.h" |
-#include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
#include "chrome/browser/defaults.h" |
#include "chrome/browser/devtools/remote_debugging_server.h" |
#include "chrome/browser/download/download_request_limiter.h" |
@@ -129,6 +128,10 @@ |
#include "components/storage_monitor/storage_monitor.h" |
#endif |
+#if !defined(DISABLE_NACL) |
+#include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
+#endif |
+ |
#if defined(ENABLE_PLUGIN_INSTALLATION) |
#include "chrome/browser/plugins/plugins_resource_service.h" |
#endif |
@@ -901,11 +904,15 @@ CRLSetFetcher* BrowserProcessImpl::crl_set_fetcher() { |
component_updater::PnaclComponentInstaller* |
BrowserProcessImpl::pnacl_component_installer() { |
+#if !defined(DISABLE_NACL) |
if (!pnacl_component_installer_.get()) { |
pnacl_component_installer_.reset( |
new component_updater::PnaclComponentInstaller()); |
} |
return pnacl_component_installer_.get(); |
+#else |
+ return NULL; |
+#endif |
} |
void BrowserProcessImpl::ResourceDispatcherHostCreated() { |