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

Unified Diff: extensions/renderer/user_script_set.cc

Issue 348313003: Create withheld permissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest master Created 6 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
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_script_set.cc
diff --git a/extensions/renderer/user_script_set.cc b/extensions/renderer/user_script_set.cc
index 536a7de6ad2812da7234c29dfd592b590c622ac1..5ab873955f026e98159d5567a4c111821d130c98 100644
--- a/extensions/renderer/user_script_set.cc
+++ b/extensions/renderer/user_script_set.cc
@@ -191,13 +191,13 @@ scoped_ptr<ScriptInjection> UserScriptSet::GetInjectionForScript(
if (!script->MatchesURL(effective_document_url))
return injection.Pass();
- if (!extension->permissions_data()->CanRunContentScriptOnPage(
+ if (extension->permissions_data()->GetContentScriptAccess(
extension,
effective_document_url,
web_frame->top()->document().url(),
-1, // Content scripts are not tab-specific.
-1, // We don't have a process id in this context.
- NULL /* ignore error */)) {
+ NULL /* ignore error */) == PermissionsData::ACCESS_DENIED) {
return injection.Pass();
}
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698