From a2dd1a60f84fa225b4f5d5b1c52cb0bc536bc28d Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Mon, 20 Sep 2010 23:09:27 +0000 Subject: Move the statistics initialization higher up in browser init. This allows code (that lives in between its old location and its new location; in particular, PrefService initialization) to use histograms. TEST=verified about:histograms contained my histogram after starting Review URL: http://codereview.chromium.org/3390017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59987 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/browser_main.cc') diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 07aad69658..e0b6df0 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -930,6 +930,9 @@ int BrowserMain(const MainFunctionParams& parameters) { // run before threads and windows are created. InitializeBrokerServices(parameters, parsed_command_line); + // Initialize histogram statistics gathering system. + StatisticsRecorder statistics; + PrefService* local_state = InitializeLocalState(parsed_command_line, is_first_run); @@ -1031,9 +1034,6 @@ int BrowserMain(const MainFunctionParams& parameters) { InitializeNetworkOptions(parsed_command_line); - // Initialize histogram statistics gathering system. - StatisticsRecorder statistics; - // Initialize histogram synchronizer system. This is a singleton and is used // for posting tasks via NewRunnableMethod. Its deleted when it goes out of // scope. Even though NewRunnableMethod does AddRef and Release, the object -- cgit v1.1