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

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: Test fix Created 6 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: extensions/renderer/user_script_set.cc
diff --git a/extensions/renderer/user_script_set.cc b/extensions/renderer/user_script_set.cc
index 536a7de6ad2812da7234c29dfd592b590c622ac1..ca837391c3a78097138df6381279a7a0a3d94f02 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()->CanRunContentScriptOnPageWithUserConsent(
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::DENY_ACCESS) {
return injection.Pass();
}
« extensions/renderer/script_injection.cc ('K') | « extensions/renderer/user_script_injector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698