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

Unified Diff: chrome/browser/ui/gtk/extensions/shell_window_gtk.cc

Issue 10880064: Make extension commands grant the activeTab permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 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/gtk/extensions/shell_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc b/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc
index 6a1193335a653ab50f4e21782cfb967904cd27d5..b51867596e2114f37df84389e776f1e012c36b3f 100644
--- a/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc
+++ b/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc
@@ -114,9 +114,11 @@ ShellWindowGtk::ShellWindowGtk(ShellWindow* shell_window,
}
// Add the keybinding registry.
- extension_keybinding_registry_.reset(
- new ExtensionKeybindingRegistryGtk(shell_window_->profile(), window_,
- extensions::ExtensionKeybindingRegistry::PLATFORM_APPS_ONLY));
+ extension_keybinding_registry_.reset(new ExtensionKeybindingRegistryGtk(
+ shell_window_->profile(),
+ window_,
+ extensions::ExtensionKeybindingRegistry::PLATFORM_APPS_ONLY,
+ shell_window_));
ui::ActiveWindowWatcherX::AddObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698