Index: chrome/test/ui/ui_test.cc |
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc |
index 8521934a76ba6a2681e0cfcbe92912d7ce31bc45..a7672982b4f182847a4add4ed23671224b00daa7 100644 |
--- a/chrome/test/ui/ui_test.cc |
+++ b/chrome/test/ui/ui_test.cc |
@@ -85,6 +85,7 @@ UITestBase::UITestBase() |
homepage_(content::kAboutBlankURL), |
wait_for_initial_loads_(true), |
dom_automation_enabled_(false), |
+ stats_collection_controller_enabled_(false), |
show_window_(false), |
clear_profile_(true), |
include_testing_id_(true), |
@@ -99,6 +100,7 @@ UITestBase::UITestBase(base::MessageLoop::Type msg_loop_type) |
expected_crashes_(0), |
wait_for_initial_loads_(true), |
dom_automation_enabled_(false), |
+ stats_collection_controller_enabled_(false), |
show_window_(false), |
clear_profile_(true), |
include_testing_id_(true), |
@@ -187,6 +189,8 @@ void UITestBase::SetLaunchSwitches() { |
launch_arguments_.AppendSwitch(switches::kEnableFileCookies); |
if (dom_automation_enabled_) |
launch_arguments_.AppendSwitch(switches::kDomAutomationController); |
+ if (stats_collection_controller_enabled_) |
+ launch_arguments_.AppendSwitch(switches::kStatsCollectionController); |
// Allow off-store extension installs. |
launch_arguments_.AppendSwitchASCII( |
switches::kEasyOffStoreExtensionInstall, "1"); |