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

Unified Diff: chrome/browser/history/web_history_service_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for review Created 7 years, 8 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 af51d1a74e7d80118dc5478075a55dd5f00e27cc..31b8951c5430648540e6616bc425c1cee6bfc83d 100644
--- a/chrome/browser/history/web_history_service_factory.cc
+++ b/chrome/browser/history/web_history_service_factory.cc
@@ -45,7 +45,9 @@ history::WebHistoryService* WebHistoryServiceFactory::GetForProfile(
}
ProfileKeyedService* WebHistoryServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* context) const {
+ Profile* profile = static_cast<Profile*>(context);
+
// Ensure that the service is not instantiated or used if the user is not
// signed into sync, or if web history is not enabled.
return IsHistorySyncEnabled(profile) ?

Powered by Google App Engine
This is Rietveld 408576698