Index: ash/test/ash_test_suite.cc |
diff --git a/ash/test/ash_test_suite.cc b/ash/test/ash_test_suite.cc |
index 2ad4a54681480eedcc28599d268aab1182c6aa61..dc8dba85c9f4a5d7fbd3368432cad454f0559a06 100644 |
--- a/ash/test/ash_test_suite.cc |
+++ b/ash/test/ash_test_suite.cc |
@@ -10,6 +10,7 @@ |
#include "base/command_line.h" |
#include "base/files/file_path.h" |
#include "base/i18n/rtl.h" |
+#include "base/metrics/statistics_recorder.h" |
#include "base/path_service.h" |
#include "build/build_config.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -28,6 +29,8 @@ AshTestSuite::~AshTestSuite() {} |
void AshTestSuite::Initialize() { |
base::TestSuite::Initialize(); |
+ // Ensure histograms hit during tests are registered properly. |
+ base::StatisticsRecorder::Initialize(); |
gl::GLSurfaceTestSupport::InitializeOneOff(); |
gfx::RegisterPathProvider(); |