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

Unified Diff: chrome/browser/spellchecker/spellcheck_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/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);

Powered by Google App Engine
This is Rietveld 408576698