diff options
Diffstat (limited to 'chrome/browser/extensions/api/web_request/web_request_api.cc')
-rw-r--r-- | chrome/browser/extensions/api/web_request/web_request_api.cc | 4 |
1 files changed, 1 insertions, 3 deletions
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 005d58a..b4e8158d 100644 --- a/chrome/browser/extensions/api/web_request/web_request_api.cc +++ b/chrome/browser/extensions/api/web_request/web_request_api.cc @@ -2230,9 +2230,7 @@ bool WebRequestInternalAddEventListenerFunction::RunSync() { // For this reason we do only a coarse check here to warn the extension // developer if he does something obviously wrong. if (!is_web_view_guest && - extensions::PermissionsData::ForExtension(extension) - ->GetEffectiveHostPermissions() - .is_empty()) { + extension->permissions_data()->GetEffectiveHostPermissions().is_empty()) { error_ = keys::kHostPermissionsRequired; return false; } |