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

Unified Diff: chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc

Issue 2910843002: [Cleanup] Move all browsertests to use ScopedFeatureList to modify features
Patch Set: rebase update 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/chromeos/extensions/input_method_apitest_chromeos.cc
diff --git a/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc b/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
index f5cfe23c44afc5f300e8f025e0cd9b2c0d7ed990..0d1ff87ce57a1f9010f02a0a2e43b057c1e2fe05 100644
--- a/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
+++ b/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/memory/ref_counted.h"
+#include "base/test/scoped_feature_list.h"
#include "chrome/browser/chromeos/extensions/input_method_event_router.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/pref_names.h"
@@ -76,14 +77,17 @@ class TestListener : public content::NotificationObserver {
};
class ExtensionInputMethodApiTest : public ExtensionApiTest {
+ public:
void SetUpCommandLine(base::CommandLine* command_line) override {
ExtensionApiTest::SetUpCommandLine(command_line);
command_line->AppendSwitchASCII(
extensions::switches::kWhitelistedExtensionID,
"ilanclmaeigfpnmdlgelmhkpkegdioip");
- command_line->AppendSwitchASCII(switches::kEnableFeatures,
- features::kOptInImeMenu.name);
+ scoped_feature_list_.InitAndEnableFeature(features::kOptInImeMenu);
Ilya Sherman 2017/06/12 21:50:29 Does this need to be done as part of SetUpCommandL
chaopeng 2017/06/28 19:21:22 Move all calls to SetUp
}
+
+ private:
+ base::test::ScopedFeatureList scoped_feature_list_;
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698