| 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) ?
|
|
|