From 7c477f8cea24d9e667fa30ff6674d4098080f838 Mon Sep 17 00:00:00 2001 From: "rtenneti@google.com" <rtenneti@google.com@0039d316-1c4b-4281-b951-d872f2087c98> Date: Wed, 15 Aug 2012 01:41:01 +0000 Subject: 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 --- content/renderer/renderer_main.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content/renderer') 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. -- cgit v1.1