Index: chrome/browser/extensions/extension_commands_global_registry_apitest.cc |
diff --git a/chrome/browser/extensions/extension_commands_global_registry_apitest.cc b/chrome/browser/extensions/extension_commands_global_registry_apitest.cc |
index 10c4f32cb50e477573bddf0576b197ff3e825262..8482422a9979c31317a809235a683ef834504207 100644 |
--- a/chrome/browser/extensions/extension_commands_global_registry_apitest.cc |
+++ b/chrome/browser/extensions/extension_commands_global_registry_apitest.cc |
@@ -111,27 +111,17 @@ void SendNativeCommandShift(int key_code) { |
} |
#endif |
-#if defined(OS_CHROMEOS) |
-// Fully implemented everywhere except Chrome OS. |
-#define MAYBE_GlobalCommand DISABLED_GlobalCommand |
-#else |
-#define MAYBE_GlobalCommand GlobalCommand |
-#endif |
- |
// Test the basics of global commands and make sure they work when Chrome |
// doesn't have focus. Also test that non-global commands are not treated as |
// global and that keys beyond Ctrl+Shift+[0..9] cannot be auto-assigned by an |
// extension. |
-IN_PROC_BROWSER_TEST_F(GlobalCommandsApiTest, MAYBE_GlobalCommand) { |
- FeatureSwitch::ScopedOverride enable_global_commands( |
- FeatureSwitch::global_commands(), true); |
- |
+IN_PROC_BROWSER_TEST_F(GlobalCommandsApiTest, GlobalCommand) { |
// Load the extension in the non-incognito browser. |
ResultCatcher catcher; |
ASSERT_TRUE(RunExtensionTest("keybinding/global")) << message_; |
ASSERT_TRUE(catcher.GetNextResult()); |
-#if defined(OS_WIN) |
+#if defined(OS_WIN) || defined(OS_CHROMEOS) |
// Our infrastructure for sending keys expects a browser to send them to, but |
// to properly test global shortcuts you need to send them to another target. |
// So, create an incognito browser to use as a target to send the shortcuts |
@@ -180,8 +170,8 @@ IN_PROC_BROWSER_TEST_F(GlobalCommandsApiTest, MAYBE_GlobalCommand) { |
ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); |
} |
-#if defined(OS_WIN) |
-// The feature is only fully implemented on Windows, other platforms coming. |
+#if defined(OS_WIN) || defined(OS_CHROMEOS) |
Finnur
2014/07/02 12:41:25
Enable for more platforms? :)
|
+// Feature fully implemented on Windows/Chrome OS, other platforms coming. |
// TODO(smus): On mac, SendKeyPress must first support media keys. |
#define MAYBE_GlobalDuplicatedMediaKey GlobalDuplicatedMediaKey |
#else |
@@ -189,9 +179,6 @@ IN_PROC_BROWSER_TEST_F(GlobalCommandsApiTest, MAYBE_GlobalCommand) { |
#endif |
IN_PROC_BROWSER_TEST_F(GlobalCommandsApiTest, MAYBE_GlobalDuplicatedMediaKey) { |
- FeatureSwitch::ScopedOverride enable_global_commands( |
- FeatureSwitch::global_commands(), true); |
- |
ResultCatcher catcher; |
ASSERT_TRUE(RunExtensionTest("keybinding/global_media_keys_0")) << message_; |
ASSERT_TRUE(catcher.GetNextResult()); |
@@ -209,7 +196,7 @@ IN_PROC_BROWSER_TEST_F(GlobalCommandsApiTest, MAYBE_GlobalDuplicatedMediaKey) { |
false, |
false); |
- // We should get two success result. |
+ // We should get two success results. |
ASSERT_TRUE(catcher.GetNextResult()); |
ASSERT_TRUE(catcher.GetNextResult()); |
} |