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

Unified Diff: chrome/browser/history/web_history_service_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/history/web_history_service_factory.cc
diff --git a/chrome/browser/history/web_history_service_factory.cc b/chrome/browser/history/web_history_service_factory.cc
index 397d6eaaaffbde709b289ad3b07f675e3635103c..e922bc0184ecd973756084fa62fbdfca4b975a8c 100644
--- a/chrome/browser/history/web_history_service_factory.cc
+++ b/chrome/browser/history/web_history_service_factory.cc
@@ -40,12 +40,12 @@ history::WebHistoryService* WebHistoryServiceFactory::GetForProfile(
Profile* profile) {
if (IsHistorySyncEnabled(profile)) {
return static_cast<history::WebHistoryService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
return NULL;
}
-ProfileKeyedService* WebHistoryServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* WebHistoryServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);
@@ -56,8 +56,9 @@ ProfileKeyedService* WebHistoryServiceFactory::BuildServiceInstanceFor(
}
WebHistoryServiceFactory::WebHistoryServiceFactory()
- : ProfileKeyedServiceFactory("WebHistoryServiceFactory",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "WebHistoryServiceFactory",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(TokenServiceFactory::GetInstance());
DependsOn(CookieSettings::Factory::GetInstance());
}

Powered by Google App Engine
This is Rietveld 408576698