Chromium Code Reviews| 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..37a40d767a4aa2005704cb8e739888782652b005 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) |
|
Finnur
2014/06/27 11:10:57
Yay! I was hoping something like this would do the
dtseng
2014/07/07 18:17:19
Sorry for the late update on this (just back from
|
| // 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 |
| @@ -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()); |