Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: trunk/src/chrome/browser/chrome_browser_main.cc

Issue 112673008: Revert 242262 "Revert of https://codereview.chromium.org/119913003/" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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))
« no previous file with comments | « trunk/src/chrome/browser/browser_resources.grd ('k') | trunk/src/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698