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

Unified Diff: extensions/renderer/web_ui_injection_host.cc

Issue 942533003: Enable <webview>.executeScript outside of Apps and Extensions [1] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_brower_isolated_world_routingid_user_script_UserScriptSet_non_hostset_2
Patch Set: Created 5 years, 10 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/web_ui_injection_host.cc
diff --git a/extensions/renderer/web_ui_injection_host.cc b/extensions/renderer/web_ui_injection_host.cc
index 334358a03c1e027c29682401cb13fb4a9612750c..07d91111feeb6e9e40065dbed148635f124671a6 100644
--- a/extensions/renderer/web_ui_injection_host.cc
+++ b/extensions/renderer/web_ui_injection_host.cc
@@ -12,6 +12,11 @@ WebUIInjectionHost::WebUIInjectionHost(const HostID& host_id)
WebUIInjectionHost::~WebUIInjectionHost() {
}
+// static
+scoped_ptr<const InjectionHost> WebUIInjectionHost::Create(
+ const HostID& host_id) {
+ return scoped_ptr<const InjectionHost>(new WebUIInjectionHost(host_id));
+}
std::string WebUIInjectionHost::GetContentSecurityPolicy() const {
return std::string();

Powered by Google App Engine
This is Rietveld 408576698