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

Unified Diff: chrome/browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc

Issue 2910843002: [Cleanup] Move all browsertests to use ScopedFeatureList to modify features
Patch Set: comments addressed and updated Created 3 years, 6 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
Index: chrome/browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc b/chrome/browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc
index 3da22426a0a0f3e033992689c634f6562cc84b66..315c0b0a2da4f0c5c0e9dca76f19f590c346b7ac 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/command_line.h"
+#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/profiles/profile.h"
@@ -85,22 +86,24 @@ class ParamaterizedFullscreenControllerInteractiveTest
ParamaterizedFullscreenControllerInteractiveTest() {}
// content::BrowserTestBase:
- void SetUpCommandLine(base::CommandLine* command_line) override {
+ void SetUp() override {
switch (GetParam()) {
case PROMPTING:
- command_line->AppendSwitchASCII(switches::kDisableFeatures,
- features::kSimplifiedFullscreenUI.name);
+ scoped_feature_list_.InitAndDisableFeature(
+ features::kSimplifiedFullscreenUI);
break;
case SIMPLIFIED:
- command_line->AppendSwitchASCII(switches::kEnableFeatures,
- features::kSimplifiedFullscreenUI.name);
+ scoped_feature_list_.InitAndEnableFeature(
+ features::kSimplifiedFullscreenUI);
break;
default:
NOTREACHED();
}
+ FullscreenControllerInteractiveTest::SetUp();
}
private:
+ base::test::ScopedFeatureList scoped_feature_list_;
DISALLOW_COPY_AND_ASSIGN(ParamaterizedFullscreenControllerInteractiveTest);
};

Powered by Google App Engine
This is Rietveld 408576698