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

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: 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 5e4bc2993834f13e1a15259f41ed70ff40d908ed..3751c03e36910afd2e686f82bdbe0001cc36704c 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"
namespace extensions {
@@ -19,9 +19,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
@@ -45,8 +46,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(
@@ -58,9 +59,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

Powered by Google App Engine
This is Rietveld 408576698