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

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: trybots 2 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 66a3b33a040730f69292900b461d1e441df2bfcf..bc5f6892ccf90e4a4f679b68eb65a038a70c4b2a 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) ?
« no previous file with comments | « chrome/browser/history/web_history_service_factory.h ('k') | chrome/browser/managed_mode/managed_user_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698