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

Unified Diff: chrome/browser/extensions/api/dial/dial_api_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 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: chrome/browser/extensions/api/dial/dial_api_factory.cc
diff --git a/chrome/browser/extensions/api/dial/dial_api_factory.cc b/chrome/browser/extensions/api/dial/dial_api_factory.cc
index 33dc74008acc386d618e71e619f897513b374c9d..8b110022c6032e3f2c10432cf1fa4ba420ef6a80 100644
--- a/chrome/browser/extensions/api/dial/dial_api_factory.cc
+++ b/chrome/browser/extensions/api/dial/dial_api_factory.cc
@@ -13,7 +13,7 @@ namespace extensions {
// static
scoped_refptr<DialAPI> DialAPIFactory::GetForProfile(Profile* profile) {
return static_cast<DialAPI*>(
- GetInstance()->GetServiceForProfile(profile, true).get());
+ GetInstance()->GetServiceForBrowserContext(profile, true).get());
}
// static
@@ -21,21 +21,21 @@ DialAPIFactory* DialAPIFactory::GetInstance() {
return Singleton<DialAPIFactory>::get();
}
-DialAPIFactory::DialAPIFactory() : RefcountedProfileKeyedServiceFactory(
- "DialAPI", ProfileDependencyManager::GetInstance()) {
+DialAPIFactory::DialAPIFactory() : RefcountedBrowserContextKeyedServiceFactory(
+ "DialAPI", BrowserContextDependencyManager::GetInstance()) {
DependsOn(ExtensionSystemFactory::GetInstance());
}
DialAPIFactory::~DialAPIFactory() {
}
-scoped_refptr<RefcountedProfileKeyedService>
+scoped_refptr<RefcountedBrowserContextKeyedService>
DialAPIFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return scoped_refptr<DialAPI>(new DialAPI(static_cast<Profile*>(profile)));
}
-bool DialAPIFactory::ServiceIsCreatedWithProfile() const {
+bool DialAPIFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698