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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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 19b86964074071985e333ddebbf77f7662b4a424..781678e1d83e2bed5a8167f199c065abc2f80369 100644
--- a/chrome/browser/extensions/extension_system_factory.cc
+++ b/chrome/browser/extensions/extension_system_factory.cc
@@ -42,8 +42,8 @@ ExtensionSystemSharedFactory::~ExtensionSystemSharedFactory() {
}
ProfileKeyedService* ExtensionSystemSharedFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new ExtensionSystemImpl::Shared(profile);
+ content::BrowserContext* profile) const {
+ return new ExtensionSystemImpl::Shared(static_cast<Profile*>(profile));
}
bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() const {
@@ -74,8 +74,8 @@ ExtensionSystemFactory::~ExtensionSystemFactory() {
}
ProfileKeyedService* ExtensionSystemFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new ExtensionSystemImpl(profile);
+ content::BrowserContext* profile) const {
+ return new ExtensionSystemImpl(static_cast<Profile*>(profile));
}
bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() const {
« no previous file with comments | « chrome/browser/extensions/extension_system_factory.h ('k') | chrome/browser/extensions/image_loader_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698