| Index: components/test/run_all_unittests.cc
|
| diff --git a/components/test/run_all_unittests.cc b/components/test/run_all_unittests.cc
|
| index 0e6dafa6027e48cac821939a3a6b511ac426aa41..ca4e064fcf58ab7a1ad43bb2f8c10e9d73912d96 100644
|
| --- a/components/test/run_all_unittests.cc
|
| +++ b/components/test/run_all_unittests.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/metrics/statistics_recorder.h"
|
| #include "base/path_service.h"
|
| #include "base/test/launcher/unit_test_launcher.h"
|
| #include "base/test/test_suite.h"
|
| @@ -35,6 +36,12 @@ class ComponentsTestSuite : public base::TestSuite {
|
| private:
|
| virtual void Initialize() OVERRIDE {
|
| base::TestSuite::Initialize();
|
| +
|
| + // Initialize the histograms subsystem, so that any histograms hit in tests
|
| + // are correctly registered with the statistics recorder and can be queried
|
| + // by tests.
|
| + base::StatisticsRecorder::Initialize();
|
| +
|
| #if !defined(OS_IOS)
|
| gfx::GLSurface::InitializeOneOffForTests();
|
| #endif
|
|
|