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

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

Issue 11778025: Decouple loading of channel info and the rest of machine statistics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build error in unit tests - need to declare the mock virtual function. Created 7 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
« 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
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index e8d9f722e6612e0c842e5832d3a88c43211cd7b9..5b947a9e19b4326db91819aa26438e4bca14b706 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -625,6 +625,11 @@ void ChromeBrowserMainPartsChromeos::PreBrowserStart() {
}
void ChromeBrowserMainPartsChromeos::PostBrowserStart() {
+ // Start loading the machine statistics. Note: if we start loading machine
+ // statistics early in PreEarlyInitialization() then the crossystem tool
+ // sometimes hangs for unknown reasons, see http://crbug.com/167671.
+ system::StatisticsProvider::GetInstance()->StartLoadingMachineStatistics();
+
// 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