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