Index: chrome/browser/extensions/extension_keybinding_apitest.cc |
diff --git a/chrome/browser/extensions/extension_keybinding_apitest.cc b/chrome/browser/extensions/extension_keybinding_apitest.cc |
index 4a376f11aba7d6bcd81d6662b6e9daea3f8231a5..7028633c7f5e87fe887b4f18280d477e8832dd68 100644 |
--- a/chrome/browser/extensions/extension_keybinding_apitest.cc |
+++ b/chrome/browser/extensions/extension_keybinding_apitest.cc |
@@ -11,7 +11,6 @@ |
#include "chrome/browser/sessions/session_tab_helper.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
-#include "chrome/common/chrome_switches.h" |
#include "chrome/common/extensions/extension.h" |
#include "chrome/common/extensions/permissions/permissions_data.h" |
#include "chrome/test/base/interactive_test_utils.h" |
@@ -19,6 +18,7 @@ |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/test/browser_test_utils.h" |
+#include "extensions/common/feature_switch.h" |
using content::WebContents; |
@@ -48,8 +48,8 @@ class ScriptBadgesCommandsApiTest : public ExtensionApiTest { |
ScriptBadgesCommandsApiTest() { |
// We cannot add this to CommandsApiTest because then PageActions get |
// treated like BrowserActions and the PageAction test starts failing. |
- CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
- switches::kScriptBadges, "1"); |
+ FeatureSwitch::script_badges()->SetOverrideValue( |
+ FeatureSwitch::OVERRIDE_ENABLED); |
} |
virtual ~ScriptBadgesCommandsApiTest() {} |
}; |