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

Unified Diff: extensions/browser/declarative_user_script_manager.h

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
Index: extensions/browser/declarative_user_script_manager.h
diff --git a/extensions/browser/declarative_user_script_manager.h b/extensions/browser/declarative_user_script_manager.h
index 35efbc5159160eeafffd106e8667752160b52f44..88e913107417cf80e0160017630e9ef8811dfd9b 100644
--- a/extensions/browser/declarative_user_script_manager.h
+++ b/extensions/browser/declarative_user_script_manager.h
@@ -32,6 +32,9 @@ class DeclarativeUserScriptManager : public ExtensionRegistryObserver {
DeclarativeUserScriptMaster* GetDeclarativeUserScriptMasterByID(
const HostID& host_id);
+ DeclarativeUserScriptMaster* GetDeclarativeUserScriptMasterByID(
+ content::BrowserContext* browser_context, const HostID& host_id);
+
private:
using UserScriptMasterMap =
std::map<HostID, linked_ptr<DeclarativeUserScriptMaster>>;
@@ -43,7 +46,7 @@ class DeclarativeUserScriptManager : public ExtensionRegistryObserver {
// Creates a DeclarativeUserScriptMaster object.
DeclarativeUserScriptMaster* CreateDeclarativeUserScriptMaster(
- const HostID& host_id);
+ content::BrowserContext* browser_context, const HostID& host_id);
// A map of DeclarativeUserScriptMasters for each host; each master
// is lazily initialized.

Powered by Google App Engine
This is Rietveld 408576698