diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 19:17:32 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 19:17:32 +0000 |
commit | fce44c1937c994e3b05a26a6d93331f804ac7d15 (patch) | |
tree | 00f009d419190f657ad928cec76f7a3f1feeb3c4 /content/browser/browser_main_runner.cc | |
parent | 7e1df2f66eee586d5800c9e56c6b434be5915dab (diff) | |
download | chromium_src-fce44c1937c994e3b05a26a6d93331f804ac7d15.zip chromium_src-fce44c1937c994e3b05a26a6d93331f804ac7d15.tar.gz chromium_src-fce44c1937c994e3b05a26a6d93331f804ac7d15.tar.bz2 |
Initialize StatisticsRecorder in Child Process to hold
all histograms in child processes.
Made StatisticsRecorder a leaky lazy singleton.
R=jar@chromium.org, jam@chromium.org
BUG=114013
TEST=renderer histograms should still work.
Review URL: https://chromiumcodereview.appspot.com/10779040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_main_runner.cc')
-rw-r--r-- | content/browser/browser_main_runner.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/content/browser/browser_main_runner.cc b/content/browser/browser_main_runner.cc index a2ecb74..fbde8b8 100644 --- a/content/browser/browser_main_runner.cc +++ b/content/browser/browser_main_runner.cc @@ -52,7 +52,7 @@ class BrowserMainRunnerImpl : public content::BrowserMainRunner { if (parameters.command_line.HasSwitch(switches::kSingleProcess)) content::RenderProcessHost::set_run_renderer_in_process(true); - statistics_.reset(new base::StatisticsRecorder); + base::StatisticsRecorder::Initialize(); notification_service_.reset(new NotificationServiceImpl); @@ -116,8 +116,6 @@ class BrowserMainRunnerImpl : public content::BrowserMainRunner { notification_service_.reset(NULL); - statistics_.reset(NULL); - is_shutdown_ = true; } @@ -136,7 +134,6 @@ class BrowserMainRunnerImpl : public content::BrowserMainRunner { #if defined(OS_WIN) scoped_ptr<base::win::ScopedCOMInitializer> com_initializer_; #endif - scoped_ptr<base::StatisticsRecorder> statistics_; DISALLOW_COPY_AND_ASSIGN(BrowserMainRunnerImpl); }; |