Index: chrome/browser/extensions/api/commands/command_service.cc |
diff --git a/chrome/browser/extensions/api/commands/command_service.cc b/chrome/browser/extensions/api/commands/command_service.cc |
index 3fd21e6a724e087da8265b2c2ab77eeead9164f5..33a522e04104bb5816b4e2fcae386448c0a9715d 100644 |
--- a/chrome/browser/extensions/api/commands/command_service.cc |
+++ b/chrome/browser/extensions/api/commands/command_service.cc |
@@ -550,15 +550,15 @@ void CommandService::AssignKeybindings(const Extension* extension) { |
bool CommandService::CanAutoAssign(const Command &command, |
const Extension* extension) { |
- // Media Keys are non-exclusive, so allow auto-assigning them. |
- if (Command::IsMediaKey(command.accelerator())) |
- return true; |
- |
// Extensions are allowed to auto-assign updated keys if the user has not |
// changed from the previous value. |
if (IsCommandShortcutUserModified(extension, command.command_name())) |
return false; |
+ // Media Keys are non-exclusive, so allow auto-assigning them. |
+ if (Command::IsMediaKey(command.accelerator())) |
+ return true; |
+ |
if (command.global()) { |
using namespace extensions; |
if (command.command_name() == manifest_values::kBrowserActionCommandEvent || |