Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1672)

Unified Diff: content/public/test/browser_test_base.cc

Issue 2876153002: Support Using ScopedFeatureList in BrowserTest (Closed)
Patch Set: fix for windows Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_base.cc
diff --git a/content/public/test/browser_test_base.cc b/content/public/test/browser_test_base.cc
index d9e976e15f6bd23946a86a8676e7920e8c702cea..a3eb63c61783bf3ba9d58ff509544523d7c51368 100644
--- a/content/public/test/browser_test_base.cc
+++ b/content/public/test/browser_test_base.cc
@@ -240,11 +240,11 @@ void BrowserTestBase::SetUp() {
base::FeatureList::GetInstance()->GetFeatureOverrides(&enabled_features,
&disabled_features);
if (!enabled_features.empty())
- command_line->AppendSwitchASCII(switches::kEnableFeatures,
- enabled_features);
+ command_line->ReplaceSwitchASCIIForTest(switches::kEnableFeatures,
+ enabled_features);
Ilya Sherman 2017/05/16 06:43:32 Hmm, shouldn't we extend the switch, rather than r
if (!disabled_features.empty())
- command_line->AppendSwitchASCII(switches::kDisableFeatures,
- disabled_features);
+ command_line->ReplaceSwitchASCIIForTest(switches::kDisableFeatures,
+ disabled_features);
// Need to wipe feature list clean, since BrowserMain calls
// FeatureList::SetInstance, which expects no instance to exist.
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698