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

Unified Diff: extensions/browser/guest_view/web_view/web_view_content_script_manager.cc

Issue 1056533002: Implement <webview>.addContentScript/removeContentScript API [2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webview_addremove_contentscripts_2
Patch Set: nits. Created 5 years, 8 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/browser/guest_view/web_view/web_view_content_script_manager.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_content_script_manager.cc b/extensions/browser/guest_view/web_view/web_view_content_script_manager.cc
index 163934cf757c0c6edddb5bd8514a840e96af5c13..15ede19ff331f09e80ce3c4bd568ea9fcfbe411b 100644
--- a/extensions/browser/guest_view/web_view/web_view_content_script_manager.cc
+++ b/extensions/browser/guest_view/web_view/web_view_content_script_manager.cc
@@ -109,6 +109,7 @@ WebViewContentScriptManager* WebViewContentScriptManager::Get(
void WebViewContentScriptManager::AddContentScripts(
content::WebContents* embedder_web_contents,
+ int embedder_routing_id,
int view_instance_id,
const HostID& host_id,
const std::set<UserScript>& scripts) {
@@ -153,7 +154,7 @@ void WebViewContentScriptManager::AddContentScripts(
}
// Step 3: adds new scripts to the master.
- master->AddScripts(scripts);
+ master->AddScripts(scripts, embedder_process_id, embedder_routing_id);
// Step 4: creates owner web contents observer for the given
// |embedder_web_contents| if it doesn't exist.
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_content_script_manager.h ('k') | extensions/browser/user_script_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698