Chromium Code Reviews| Index: chrome/browser/history/chrome_history_client_factory.cc |
| diff --git a/chrome/browser/history/chrome_history_client_factory.cc b/chrome/browser/history/chrome_history_client_factory.cc |
| index b56a89871228b865c53057e5431467bb56d504e6..8a703277d83cb73aecd0fce52bbbe31d22b8adbc 100644 |
| --- a/chrome/browser/history/chrome_history_client_factory.cc |
| +++ b/chrome/browser/history/chrome_history_client_factory.cc |
| @@ -36,7 +36,9 @@ ChromeHistoryClientFactory::~ChromeHistoryClientFactory() { |
| KeyedService* ChromeHistoryClientFactory::BuildServiceInstanceFor( |
| content::BrowserContext* context) const { |
| return new ChromeHistoryClient( |
|
sdefresne
2014/09/04 15:50:01
nit: you can define a profile variable here to avo
nshaik
2014/09/04 18:43:01
Done.
|
| - BookmarkModelFactory::GetForProfile(static_cast<Profile*>(context))); |
| + BookmarkModelFactory::GetForProfile(static_cast<Profile*>(context)), |
| + static_cast<Profile*>(context), |
| + static_cast<Profile*>(context)->GetTopSites()); |
| } |
| content::BrowserContext* ChromeHistoryClientFactory::GetBrowserContextToUse( |