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

Unified Diff: chrome/browser/extensions/extension_keybinding_registry.h

Issue 360423002: Allow WebContents key handling to supplant extension overrides of the bookmark shortcut (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: rebase Created 6 years, 5 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/extensions/extension_keybinding_registry.h
diff --git a/chrome/browser/extensions/extension_keybinding_registry.h b/chrome/browser/extensions/extension_keybinding_registry.h
index 1fb656cffa997769f053358af2cbc09916534f44..85ec8d80eea3a15162c4201cda0c3a9a371d76fa 100644
--- a/chrome/browser/extensions/extension_keybinding_registry.h
+++ b/chrome/browser/extensions/extension_keybinding_registry.h
@@ -121,6 +121,9 @@ class ExtensionKeybindingRegistry : public content::NotificationObserver,
// Returns true if the |event_targets_| is empty; otherwise returns false.
bool IsEventTargetsEmpty() const;
+ // Returns the BrowserContext for this registry.
+ content::BrowserContext* browser_context() const { return browser_context_; }
+
private:
// Overridden from content::NotificationObserver:
virtual void Observe(int type,
« no previous file with comments | « chrome/browser/extensions/extension_keybinding_apitest.cc ('k') | chrome/browser/ui/extensions/accelerator_priority.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698