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

Unified Diff: chrome/browser/extensions/api/web_request/web_request_api.cc

Issue 10649003: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase on HEAD Created 8 years, 6 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/api/web_request/web_request_api.cc
diff --git a/chrome/browser/extensions/api/web_request/web_request_api.cc b/chrome/browser/extensions/api/web_request/web_request_api.cc
index ea0ae29ee9d87532a1afe209fabdc6f0c2690781..6b24f0991d9575fff94d7c781608dc3cceba9c5c 100644
--- a/chrome/browser/extensions/api/web_request/web_request_api.cc
+++ b/chrome/browser/extensions/api/web_request/web_request_api.cc
@@ -51,6 +51,7 @@
using content::BrowserMessageFilter;
using content::BrowserThread;
using content::ResourceRequestInfo;
+using extensions::APIPermission;
using extensions::Extension;
namespace helpers = extension_web_request_api_helpers;
@@ -1575,7 +1576,7 @@ bool WebRequestAddEventListener::RunImpl() {
(ExtensionWebRequestEventRouter::ExtraInfoSpec::BLOCKING |
ExtensionWebRequestEventRouter::ExtraInfoSpec::ASYNC_BLOCKING)) &&
!extension->HasAPIPermission(
- ExtensionAPIPermission::kWebRequestBlocking)) {
+ APIPermission::kWebRequestBlocking)) {
error_ = keys::kBlockingPermissionRequired;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698