Index: trunk/src/chrome/browser/chrome_browser_main.cc |
=================================================================== |
--- trunk/src/chrome/browser/chrome_browser_main.cc (revision 243216) |
+++ trunk/src/chrome/browser/chrome_browser_main.cc (working copy) |
@@ -388,25 +388,28 @@ |
} |
#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 @@ |
cus->Start(); |
} |
+#if !defined(OS_ANDROID) |
bool ProcessSingletonNotificationCallback( |
const CommandLine& command_line, |
const base::FilePath& current_directory) { |
@@ -1476,6 +1480,9 @@ |
// 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(); |
@@ -1499,9 +1506,6 @@ |
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)) |