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..f612a18dd4b9735f978dec634d4ad2dc4154c27b 100644 |
--- a/chrome/browser/history/chrome_history_client_factory.cc |
+++ b/chrome/browser/history/chrome_history_client_factory.cc |
@@ -35,8 +35,10 @@ ChromeHistoryClientFactory::~ChromeHistoryClientFactory() { |
KeyedService* ChromeHistoryClientFactory::BuildServiceInstanceFor( |
content::BrowserContext* context) const { |
- return new ChromeHistoryClient( |
- BookmarkModelFactory::GetForProfile(static_cast<Profile*>(context))); |
+ Profile* profile = static_cast<Profile*>(context); |
+ return new ChromeHistoryClient(BookmarkModelFactory::GetForProfile(profile), |
+ profile, |
+ profile->GetTopSites()); |
} |
content::BrowserContext* ChromeHistoryClientFactory::GetBrowserContextToUse( |