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

Unified Diff: extensions/browser/declarative_user_script_manager.cc

Issue 1132113008: Extract DeclarativeUserScriptManager from ExtensionSystem. (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
Index: extensions/browser/declarative_user_script_manager.cc
diff --git a/extensions/browser/declarative_user_script_manager.cc b/extensions/browser/declarative_user_script_manager.cc
index 3b6c4c7a470d36bd2483a65a14bf87372dd61b81..9c10ab3f2f220ac99806608383a43d3e47ddf11a 100644
--- a/extensions/browser/declarative_user_script_manager.cc
+++ b/extensions/browser/declarative_user_script_manager.cc
@@ -5,6 +5,7 @@
#include "extensions/browser/declarative_user_script_manager.h"
#include "content/public/browser/browser_context.h"
+#include "extensions/browser/declarative_user_script_manager_factory.h"
#include "extensions/browser/declarative_user_script_master.h"
#include "extensions/browser/extension_registry.h"
@@ -19,6 +20,13 @@ DeclarativeUserScriptManager::DeclarativeUserScriptManager(
DeclarativeUserScriptManager::~DeclarativeUserScriptManager() {
}
+// static
+DeclarativeUserScriptManager* DeclarativeUserScriptManager::Get(
+ content::BrowserContext* browser_context) {
+ return DeclarativeUserScriptManagerFactory::GetForBrowserContext(
+ browser_context);
+}
+
DeclarativeUserScriptMaster*
DeclarativeUserScriptManager::GetDeclarativeUserScriptMasterByID(
const HostID& host_id) {
« no previous file with comments | « extensions/browser/declarative_user_script_manager.h ('k') | extensions/browser/declarative_user_script_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698