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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 11549025: Read the ChromeOS channel info earlier during startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/mock_statistics_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
===================================================================
--- chrome/browser/chromeos/chrome_browser_main_chromeos.cc (revision 172608)
+++ chrome/browser/chromeos/chrome_browser_main_chromeos.cc (working copy)
@@ -370,6 +370,10 @@
::switches::kLoginProfile).value();
}
+ // Initialize the statistics provider, which will ensure that the Chrome
+ // channel info is read and made available early.
+ system::StatisticsProvider::GetInstance()->Init();
+
ChromeBrowserMainPartsLinux::PreEarlyInitialization();
}
@@ -596,12 +600,6 @@
}
void ChromeBrowserMainPartsChromeos::PostBrowserStart() {
- // FILE thread is created in ChromeBrowserMainParts::PreMainMessageLoopRun().
-
- // Get the statistics provider instance here to start loading statistcs
- // on the background FILE thread.
- system::StatisticsProvider::GetInstance();
-
// These are dependent on the ash::Shell singleton already having been
// initialized.
power_button_observer_.reset(new PowerButtonObserver);
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/mock_statistics_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698