summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-20 23:09:27 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-20 23:09:27 +0000
commita2dd1a60f84fa225b4f5d5b1c52cb0bc536bc28d (patch)
tree3768e333845eaeba18c3708f73f0027e820bec2a /chrome/browser/browser_main.cc
parent5ae8af554ab5798727ee93f60e75f4f00597037d (diff)
downloadchromium_src-a2dd1a60f84fa225b4f5d5b1c52cb0bc536bc28d.zip
chromium_src-a2dd1a60f84fa225b4f5d5b1c52cb0bc536bc28d.tar.gz
chromium_src-a2dd1a60f84fa225b4f5d5b1c52cb0bc536bc28d.tar.bz2
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
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc6
1 files changed, 3 insertions, 3 deletions
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