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

Unified Diff: chrome/browser/predictors/predictor_database_factory.cc

Issue 12225093: chrome/browser/predictors componentization part-1 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 10 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 55eafbdeb8649af6b793c282e3ad18e0cb8f6489..5cc7ce632e60097868d9de0f520586f8425a8857 100644
--- a/chrome/browser/predictors/predictor_database_factory.cc
+++ b/chrome/browser/predictors/predictor_database_factory.cc
@@ -5,15 +5,16 @@
#include "chrome/browser/predictors/predictor_database_factory.h"
#include "base/bind.h"
-#include "chrome/browser/predictors/predictor_database.h"
+#include "chrome/browser/predictors/predictor_database_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
namespace predictors {
// static
-PredictorDatabase* PredictorDatabaseFactory::GetForProfile(Profile* profile) {
- return static_cast<PredictorDatabase*>(
+PredictorDatabaseService* PredictorDatabaseFactory::GetForProfile(
+ Profile* profile) {
+ return static_cast<PredictorDatabaseService*>(
GetInstance()->GetServiceForProfile(profile, true));
}
@@ -32,7 +33,7 @@ PredictorDatabaseFactory::~PredictorDatabaseFactory() {
ProfileKeyedService* PredictorDatabaseFactory::BuildServiceInstanceFor(
Profile* profile) const {
- return new PredictorDatabase(profile);
+ return new PredictorDatabaseService(profile);
}
} // namespace predictors
« no previous file with comments | « chrome/browser/predictors/predictor_database_factory.h ('k') | chrome/browser/predictors/predictor_database_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698