| Index: chrome/browser/extensions/extension_keybinding_registry.cc
|
| diff --git a/chrome/browser/extensions/extension_keybinding_registry.cc b/chrome/browser/extensions/extension_keybinding_registry.cc
|
| index 40c7712147e0c331ee932d59a311277932eff1a9..deeb0a4ed6886fa26127a7ec70e3489051db5d9d 100644
|
| --- a/chrome/browser/extensions/extension_keybinding_registry.cc
|
| +++ b/chrome/browser/extensions/extension_keybinding_registry.cc
|
| @@ -238,13 +238,14 @@
|
| if (targets == event_targets_.end() || targets->second.empty())
|
| return false;
|
|
|
| + if (!extension_id.empty() &&
|
| + !extensions::EventRouter::Get(browser_context_)
|
| + ->ExtensionHasEventListener(extension_id, kOnCommandEventName))
|
| + return false;
|
| +
|
| bool executed = false;
|
| for (TargetList::const_iterator it = targets->second.begin();
|
| it != targets->second.end(); it++) {
|
| - if (!extensions::EventRouter::Get(browser_context_)
|
| - ->ExtensionHasEventListener(it->first, kOnCommandEventName))
|
| - continue;
|
| -
|
| if (extension_id.empty() || it->first == extension_id) {
|
| CommandExecuted(it->first, it->second);
|
| executed = true;
|
|
|