| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index f033fc72e6484a373ebfda4ccdebbc5041559776..f11c24e713ab8440bf6585454e5f597e9900f517 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -388,28 +388,25 @@
|
| }
|
| #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) && !defined(OS_ANDROID)
|
| +#if !defined(OS_CHROMEOS)
|
| 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) && !defined(OS_ANDROID)
|
| +
|
| +#if !defined(OS_CHROMEOS)
|
| 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))
|
| @@ -419,7 +416,6 @@
|
| cus->Start();
|
| }
|
|
|
| -#if !defined(OS_ANDROID)
|
| bool ProcessSingletonNotificationCallback(
|
| const CommandLine& command_line,
|
| const base::FilePath& current_directory) {
|
| @@ -1494,9 +1490,6 @@
|
| // 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();
|
| @@ -1519,6 +1512,9 @@
|
| std::vector<Profile*> last_opened_profiles =
|
| 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)) {
|
|
|