Index: chrome/browser/spellchecker/spellcheck_factory.cc |
diff --git a/chrome/browser/spellchecker/spellcheck_factory.cc b/chrome/browser/spellchecker/spellcheck_factory.cc |
index c222b540f16cb1dd82f528c2de9cd4e2e9edebfb..0e6bd19fcc3c74794fb2e826cbad36bf70054652 100644 |
--- a/chrome/browser/spellchecker/spellcheck_factory.cc |
+++ b/chrome/browser/spellchecker/spellcheck_factory.cc |
@@ -18,7 +18,7 @@ |
// static |
SpellcheckService* SpellcheckServiceFactory::GetForProfile(Profile* profile) { |
return static_cast<SpellcheckService*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -38,7 +38,7 @@ SpellcheckService* SpellcheckServiceFactory::GetForRenderProcessId( |
SpellcheckService* SpellcheckServiceFactory::GetForProfileWithoutCreating( |
Profile* profile) { |
return static_cast<SpellcheckService*>( |
- GetInstance()->GetServiceForProfile(profile, false)); |
+ GetInstance()->GetServiceForBrowserContext(profile, false)); |
} |
// static |
@@ -47,15 +47,16 @@ SpellcheckServiceFactory* SpellcheckServiceFactory::GetInstance() { |
} |
SpellcheckServiceFactory::SpellcheckServiceFactory() |
- : ProfileKeyedServiceFactory("SpellcheckService", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "SpellcheckService", |
+ BrowserContextDependencyManager::GetInstance()) { |
// TODO(erg): Uncomment these as they are initialized. |
// DependsOn(RequestContextFactory::GetInstance()); |
} |
SpellcheckServiceFactory::~SpellcheckServiceFactory() {} |
-ProfileKeyedService* SpellcheckServiceFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* SpellcheckServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* context) const { |
Profile* profile = static_cast<Profile*>(context); |