Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4141)

Unified Diff: chrome/browser/ui/views/toolbar/browser_actions_container.cc

Issue 553243002: Track the active ExtensionKeybindingRegistry and make it available to EventRewriter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/toolbar/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
index 5ed94f3e2f00e37eb91ffd966dbf4b2c33d79a12..75466b38d7d0637f9be7278da845c2afedfca0f5 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
@@ -269,6 +269,11 @@ void BrowserActionsContainer::ExecuteExtensionCommand(
command.accelerator());
}
+bool BrowserActionsContainer::IsExtensionCommandRegistered(
+ const ui::Accelerator& accelerator) {
+ return extension_keybinding_registry_->IsAcceleratorRegistered(accelerator);
+}
+
bool BrowserActionsContainer::ShownInsideMenu() const {
return in_overflow_mode();
}

Powered by Google App Engine
This is Rietveld 408576698