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

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

Issue 10880064: Make extension commands grant the activeTab permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gtk compile 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/script_badge_controller.cc
diff --git a/chrome/browser/extensions/script_badge_controller.cc b/chrome/browser/extensions/script_badge_controller.cc
index 111384a7172f9dd6c543c44475d112f667df6d99..ff18157570059d634ad888f13aa9cb59a65762e9 100644
--- a/chrome/browser/extensions/script_badge_controller.cc
+++ b/chrome/browser/extensions/script_badge_controller.cc
@@ -76,7 +76,7 @@ LocationBarController::Action ScriptBadgeController::OnClicked(
case 1: // left
case 2: { // middle
extensions::TabHelper::FromWebContents(web_contents())->
- active_tab_permission_manager()->GrantIfRequested(extension);
+ active_tab_permission_granter()->GrantIfRequested(extension);
TabContents* tab_contents = TabContents::FromWebContents(web_contents());
// Even if clicking the badge doesn't immediately cause the extension to

Powered by Google App Engine
This is Rietveld 408576698