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

Unified Diff: chrome/browser/extensions/extension_system_factory.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 11 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: chrome/browser/extensions/extension_system_factory.cc
diff --git a/chrome/browser/extensions/extension_system_factory.cc b/chrome/browser/extensions/extension_system_factory.cc
index a9f3d2ef279012d8c46bf594595bd520ff0996d1..b8e851d1ec30257bc2b43c74617921573dd919be 100644
--- a/chrome/browser/extensions/extension_system_factory.cc
+++ b/chrome/browser/extensions/extension_system_factory.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/extensions/extension_system_factory.h"
-#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/policy/profile_policy_connector_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
#include "extensions/browser/extension_prefs_factory.h"
#include "extensions/browser/extension_registry_factory.h"
+#include "extensions/browser/extension_system.h"
#include "extensions/browser/extensions_browser_client.h"
#include "extensions/browser/renderer_startup_helper.h"
@@ -20,9 +20,10 @@ namespace extensions {
// static
ExtensionSystemImpl::Shared*
-ExtensionSystemSharedFactory::GetForProfile(Profile* profile) {
+ExtensionSystemSharedFactory::GetForBrowserContext(
+ content::BrowserContext* context) {
return static_cast<ExtensionSystemImpl::Shared*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
+ GetInstance()->GetServiceForBrowserContext(context, true));
}
// static
@@ -47,8 +48,8 @@ ExtensionSystemSharedFactory::~ExtensionSystemSharedFactory() {
BrowserContextKeyedService*
ExtensionSystemSharedFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new ExtensionSystemImpl::Shared(static_cast<Profile*>(profile));
+ content::BrowserContext* context) const {
+ return new ExtensionSystemImpl::Shared(static_cast<Profile*>(context));
}
content::BrowserContext* ExtensionSystemSharedFactory::GetBrowserContextToUse(
@@ -60,9 +61,10 @@ content::BrowserContext* ExtensionSystemSharedFactory::GetBrowserContextToUse(
// ExtensionSystemFactory
// static
-ExtensionSystem* ExtensionSystemFactory::GetForProfile(Profile* profile) {
+ExtensionSystem* ExtensionSystemFactory::GetForBrowserContext(
+ content::BrowserContext* context) {
return static_cast<ExtensionSystem*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
+ GetInstance()->GetServiceForBrowserContext(context, true));
}
// static
« no previous file with comments | « chrome/browser/extensions/extension_system_factory.h ('k') | chrome/browser/extensions/extension_system_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698