summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api')
-rw-r--r--chrome/browser/extensions/api/commands/command_service.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/extensions/api/commands/command_service.cc b/chrome/browser/extensions/api/commands/command_service.cc
index 99993bd..37f51b3 100644
--- a/chrome/browser/extensions/api/commands/command_service.cc
+++ b/chrome/browser/extensions/api/commands/command_service.cc
@@ -79,17 +79,10 @@ bool InitialBindingsHaveBeenAssigned(
}
bool IsWhitelistedGlobalShortcut(const extensions::Command& command) {
- // Non-global shortcuts are always allowed.
if (!command.global())
return true;
- // Global shortcuts must be (Ctrl|Command)-Shift-[0-9].
-#if defined OS_MACOSX
- if (!command.accelerator().IsCmdDown())
- return false;
-#else
if (!command.accelerator().IsCtrlDown())
return false;
-#endif
if (!command.accelerator().IsShiftDown())
return false;
return (command.accelerator().key_code() >= ui::VKEY_0 &&