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

Unified Diff: chrome/browser/extensions/page_action_controller.cc

Issue 10880064: Make extension commands grant the activeTab permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update GTK with the TabContents changes 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/extensions/page_action_controller.cc
diff --git a/chrome/browser/extensions/page_action_controller.cc b/chrome/browser/extensions/page_action_controller.cc
index 162840f3bfea5448acfac1e3050bdff50f46236c..bcb7701dd420a8a52d92ff745ae52c5bb22335ed 100644
--- a/chrome/browser/extensions/page_action_controller.cc
+++ b/chrome/browser/extensions/page_action_controller.cc
@@ -54,7 +54,7 @@ LocationBarController::Action PageActionController::OnClicked(
int tab_id = ExtensionTabUtil::GetTabId(web_contents());
extensions::TabHelper::FromWebContents(web_contents())->
- active_tab_permission_manager()->GrantIfRequested(extension);
+ active_tab_permission_granter()->GrantIfRequested(extension);
switch (mouse_button) {
case 1: // left

Powered by Google App Engine
This is Rietveld 408576698