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

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

Issue 1056133005: Make WebUI webview content script work with incognito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webview-content-script-api-from-xi
Patch Set: Created 5 years, 9 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/browser/declarative_user_script_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bc7ada67e5401e24ea6e2c027bb59817850c9436..20d3c8f1fc1e1a9fe79e9866531f6570d576c8cc 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
@@ -49,7 +49,7 @@ void WebViewContentScriptManager::AddContentScripts(
DeclarativeUserScriptMaster* master =
ExtensionSystem::Get(browser_context_)
->declarative_user_script_manager()
- ->GetDeclarativeUserScriptMasterByID(host_id);
+ ->GetDeclarativeUserScriptMasterByID(browser_context_, host_id);
DCHECK(master);
// We need to update WebViewRenderState in the IO thread if the guest exists.
« no previous file with comments | « extensions/browser/declarative_user_script_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698