diff options
author | rtenneti@google.com <rtenneti@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-15 01:41:01 +0000 |
---|---|---|
committer | rtenneti@google.com <rtenneti@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-15 01:41:01 +0000 |
commit | 7c477f8cea24d9e667fa30ff6674d4098080f838 (patch) | |
tree | c89234adf19148e07b3aaab722af8ff472772804 /content/renderer | |
parent | 19030343da851c7e6d9b3fe6c17afc2e50709b36 (diff) | |
download | chromium_src-7c477f8cea24d9e667fa30ff6674d4098080f838.zip chromium_src-7c477f8cea24d9e667fa30ff6674d4098080f838.tar.gz chromium_src-7c477f8cea24d9e667fa30ff6674d4098080f838.tar.bz2 |
Initialize StatisticsRecorder (singleton) before FieldTrails are
initialized.
This change reverts the change to renderer_main.cc in the following
CL:
https://chromiumcodereview.appspot.com/10779040
BUG=140688
TBR=jam@chromium.org, kaiwang@chromium.org, jamesr@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10830328
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151628 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r-- | content/renderer/renderer_main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/renderer/renderer_main.cc b/content/renderer/renderer_main.cc index a84a3cb..cba9a31 100644 --- a/content/renderer/renderer_main.cc +++ b/content/renderer/renderer_main.cc @@ -12,6 +12,7 @@ #include "base/metrics/field_trial.h" #include "base/message_loop.h" #include "base/metrics/histogram.h" +#include "base/metrics/statistics_recorder.h" #include "base/metrics/stats_counters.h" #include "base/path_service.h" #include "base/process_util.h" @@ -181,6 +182,9 @@ int RendererMain(const content::MainFunctionParams& parameters) { bool no_sandbox = parsed_command_line.HasSwitch(switches::kNoSandbox); platform.InitSandboxTests(no_sandbox); + // Initialize histogram statistics gathering system. + base::StatisticsRecorder::Initialize(); + // Initialize statistical testing infrastructure. We set client_id to the // empty string to disallow the renderer process from creating its own // one-time randomized trials; they should be created in the browser process. |