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

Unified Diff: chrome/browser/predictors/predictor_database_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/predictors/predictor_database_factory.cc
diff --git a/chrome/browser/predictors/predictor_database_factory.cc b/chrome/browser/predictors/predictor_database_factory.cc
index b3bec2abca4767525d084329c677a6b40286346f..38d6ae8e6e7d130b7aa656e3609f6bbba8578354 100644
--- a/chrome/browser/predictors/predictor_database_factory.cc
+++ b/chrome/browser/predictors/predictor_database_factory.cc
@@ -14,7 +14,7 @@ namespace predictors {
// static
PredictorDatabase* PredictorDatabaseFactory::GetForProfile(Profile* profile) {
return static_cast<PredictorDatabase*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -23,14 +23,14 @@ PredictorDatabaseFactory* PredictorDatabaseFactory::GetInstance() {
}
PredictorDatabaseFactory::PredictorDatabaseFactory()
- : ProfileKeyedServiceFactory(
- "PredictorDatabase", ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "PredictorDatabase", BrowserContextDependencyManager::GetInstance()) {
}
PredictorDatabaseFactory::~PredictorDatabaseFactory() {
}
-ProfileKeyedService* PredictorDatabaseFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* PredictorDatabaseFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new PredictorDatabase(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698