Index: chrome/browser/ui/browser_init.cc |
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc |
index 6d2bc1e91253e745a9393e2ae0cc8bf898564206..4b343d22ad8ccb4df937f7a92fb79b20017b4197 100644 |
--- a/chrome/browser/ui/browser_init.cc |
+++ b/chrome/browser/ui/browser_init.cc |
@@ -28,6 +28,7 @@ |
#include "chrome/browser/component_updater/component_updater_service.h" |
#include "chrome/browser/component_updater/flash_component_installer.h" |
#include "chrome/browser/component_updater/recovery_component_installer.h" |
+#include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
#include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
#include "chrome/browser/defaults.h" |
#include "chrome/browser/extensions/extension_creator.h" |
@@ -490,6 +491,11 @@ void RegisterComponentsForUpdate(const CommandLine& command_line) { |
if (command_line.HasSwitch(switches::kEnableCRLSets)) |
g_browser_process->crl_set_fetcher()->StartInitialLoad(cus); |
+ // This developer version of Pnacl should only be installed for developers. |
+ if (command_line.HasSwitch(switches::kEnablePnacl)) { |
+ RegisterPnaclComponent(cus); |
+ } |
+ |
cus->Start(); |
} |