summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/dial/dial_api_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/dial/dial_api_factory.cc')
-rw-r--r--chrome/browser/extensions/api/dial/dial_api_factory.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/extensions/api/dial/dial_api_factory.cc b/chrome/browser/extensions/api/dial/dial_api_factory.cc
index 33dc740..8b11002 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;
}