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

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: Move SFL calls to constructor Created 3 years, 5 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..af441c96f0830e47266d4b3afd60d68af7b827ab 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"
@@ -82,18 +83,15 @@ class ParamaterizedFullscreenControllerInteractiveTest
: public FullscreenControllerInteractiveTest,
public ::testing::WithParamInterface<int> {
public:
- ParamaterizedFullscreenControllerInteractiveTest() {}
-
- // content::BrowserTestBase:
- void SetUpCommandLine(base::CommandLine* command_line) override {
+ ParamaterizedFullscreenControllerInteractiveTest() {
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();
@@ -101,6 +99,7 @@ class ParamaterizedFullscreenControllerInteractiveTest
}
private:
+ base::test::ScopedFeatureList scoped_feature_list_;
DISALLOW_COPY_AND_ASSIGN(ParamaterizedFullscreenControllerInteractiveTest);
};
« no previous file with comments | « chrome/browser/task_manager/task_manager_browsertest.cc ('k') | chrome/browser/ui/search/local_ntp_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698