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

Unified Diff: extensions/renderer/web_ui_injection_host.cc

Issue 1150683007: [Extensions] Use document url (not top url) for tab-specific permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/web_ui_injection_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/web_ui_injection_host.cc
diff --git a/extensions/renderer/web_ui_injection_host.cc b/extensions/renderer/web_ui_injection_host.cc
index 5c6e1175c8810d4845b94f00f7fc5d3bbe82c3d0..799f3fa8ea974d8c6821648382fe7df3d59573bb 100644
--- a/extensions/renderer/web_ui_injection_host.cc
+++ b/extensions/renderer/web_ui_injection_host.cc
@@ -25,10 +25,10 @@ const std::string& WebUIInjectionHost::name() const {
}
extensions::PermissionsData::AccessType WebUIInjectionHost::CanExecuteOnFrame(
- const GURL& document_url,
- const GURL& top_frame_url,
- int tab_id,
- bool is_declarative) const {
+ const GURL& document_url,
+ content::RenderFrame* render_frame,
+ int tab_id,
+ bool is_declarative) const {
// Content scripts are allowed to inject on webviews created by WebUI.
return extensions::PermissionsData::AccessType::ACCESS_ALLOWED;
}
« no previous file with comments | « extensions/renderer/web_ui_injection_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698