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

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

Issue 10815028: Make ActiveTabPermissionManager also grant the tabs permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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_function.cc
diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc
index 4e53d1b094754e97334090d53b11a6113cd7ac0f..e28e35364c2d2dff3ffea84a24447d0b557219b0 100644
--- a/chrome/browser/extensions/extension_function.cc
+++ b/chrome/browser/extensions/extension_function.cc
@@ -83,6 +83,10 @@ IOThreadExtensionFunction* ExtensionFunction::AsIOThreadExtensionFunction() {
return NULL;
}
+bool ExtensionFunction::HasPermission() {
+ return extension_->HasAPIPermission(name_);
+}
+
void ExtensionFunction::OnQuotaExceeded() {
error_ = QuotaLimitHeuristic::kGenericOverQuotaError;
SendResponse(false);

Powered by Google App Engine
This is Rietveld 408576698