summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_metrics_apitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_metrics_apitest.cc')
-rw-r--r--chrome/browser/extensions/extension_metrics_apitest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_metrics_apitest.cc b/chrome/browser/extensions/extension_metrics_apitest.cc
index 39d342a..5a91e9f 100644
--- a/chrome/browser/extensions/extension_metrics_apitest.cc
+++ b/chrome/browser/extensions/extension_metrics_apitest.cc
@@ -7,6 +7,7 @@
#include "base/histogram.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/extension_apitest.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/notification_registrar.h"
@@ -139,6 +140,9 @@ void ValidateHistograms(const Extension* extension,
} // anonymous namespace
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Metrics) {
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kEnableExperimentalExtensionApis);
+
UserActionObserver observer;
ASSERT_TRUE(RunExtensionTest("metrics")) << message_;