Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index f11c24e713ab8440bf6585454e5f597e9900f517..f033fc72e6484a373ebfda4ccdebbc5041559776 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -388,25 +388,28 @@ OSStatus KeychainCallback(SecKeychainEvent keychain_event, |
} |
#endif |
-#if !defined(OS_ANDROID) |
void RegisterComponentsForUpdate(const CommandLine& command_line) { |
ComponentUpdateService* cus = g_browser_process->component_updater(); |
// 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) |
+#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
RegisterRecoveryComponent(cus, g_browser_process->local_state()); |
RegisterPepperFlashComponent(cus); |
RegisterSwiftShaderComponent(cus); |
#endif |
+#if !defined(OS_ANDROID) |
g_browser_process->pnacl_component_installer()->RegisterPnaclComponent( |
cus, command_line); |
+#endif |
-#if !defined(OS_CHROMEOS) |
+#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
RegisterWidevineCdmComponent(cus); |
+#endif |
+#if !defined(OS_CHROMEOS) |
// CRLSetFetcher attempts to load a CRL set from either the local disk or |
// network. |
if (!command_line.HasSwitch(switches::kDisableCRLSets)) |
@@ -416,6 +419,7 @@ void RegisterComponentsForUpdate(const CommandLine& command_line) { |
cus->Start(); |
} |
+#if !defined(OS_ANDROID) |
bool ProcessSingletonNotificationCallback( |
const CommandLine& command_line, |
const base::FilePath& current_directory) { |
@@ -1490,6 +1494,9 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { |
// http://crbug.com/105065. |
browser_process_->notification_ui_manager(); |
+ if (!parsed_command_line().HasSwitch(switches::kDisableComponentUpdate)) |
+ RegisterComponentsForUpdate(parsed_command_line()); |
+ |
#if defined(OS_ANDROID) |
chrome_variations::VariationsService* variations_service = |
browser_process_->variations_service(); |
@@ -1513,9 +1520,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { |
g_browser_process->profile_manager()->GetLastOpenedProfiles(); |
#endif |
- if (!parsed_command_line().HasSwitch(switches::kDisableComponentUpdate)) |
- RegisterComponentsForUpdate(parsed_command_line()); |
- |
if (browser_creator_->Start(parsed_command_line(), base::FilePath(), |
profile_, last_opened_profiles, &result_code)) { |
#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) |