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

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

Issue 17298002: Allow tabCapture API to be granted for chrome:// pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix permissions tests Created 7 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/active_tab_permission_granter.h
diff --git a/chrome/browser/extensions/active_tab_permission_granter.h b/chrome/browser/extensions/active_tab_permission_granter.h
index 8584c29682fa3c25ca308e18e9be31ce57af2c3c..5115bf0eb57a467dde1320184da6b7bbe94cb595 100644
--- a/chrome/browser/extensions/active_tab_permission_granter.h
+++ b/chrome/browser/extensions/active_tab_permission_granter.h
@@ -38,9 +38,9 @@ class ActiveTabPermissionGranter : public content::WebContentsObserver,
// tab-specific permissions to it until the next page navigation or refresh.
void GrantIfRequested(const Extension* extension);
- // Returns true if |extension| has been granted tab-specific permissions
- // for this tab.
- bool IsGranted(const Extension* extension);
+ // Check if the tab has the kTabs API permission.
+ static bool IsGrantedForTab(const Extension* extension,
+ const content::WebContents* web_contents);
private:
// content::WebContentsObserver implementation.

Powered by Google App Engine
This is Rietveld 408576698