Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 031caf08c8b93710ec584ccc5fee90103bf6b675..bd0a1b9091ec59f6d03842f847e2446d6e85699f 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -447,11 +447,11 @@ void RecordTouchEventState(const CommandLine& command_line) { |
void RegisterComponentsForUpdate(const CommandLine& command_line) { |
ComponentUpdateService* cus = g_browser_process->component_updater(); |
- if (!cus) |
- return; |
- // Registration can be before of after cus->Start() so it is ok to post |
+ |
+ // Registration can be before or after cus->Start() so it is ok to post |
// a task to the UI thread to do registration once you done the necessary |
// file IO to know you existing component version. |
+#if !defined(OS_CHROMEOS) |
RegisterRecoveryComponent(cus, g_browser_process->local_state()); |
RegisterPepperFlashComponent(cus); |
RegisterSwiftShaderComponent(cus); |
@@ -460,8 +460,10 @@ void RegisterComponentsForUpdate(const CommandLine& command_line) { |
// network. |
if (!command_line.HasSwitch(switches::kDisableCRLSets)) |
g_browser_process->crl_set_fetcher()->StartInitialLoad(cus); |
+#endif |
- RegisterPnaclComponent(cus, command_line); |
+ g_browser_process->pnacl_component_installer()->RegisterPnaclComponent( |
+ cus, command_line); |
cus->Start(); |
} |