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..99703e6b20575fdce1bc42538f3a69ee42b9cedc 100644 |
--- a/chrome/browser/history/chrome_history_client_factory.cc |
+++ b/chrome/browser/history/chrome_history_client_factory.cc |
@@ -11,6 +11,10 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "components/keyed_service/content/browser_context_dependency_manager.h" |
+namespace history { |
sdefresne
2014/08/04 08:47:18
Remove, this is un-necessary.
nshaik
2014/08/05 06:38:03
Done.
|
+class TopSites; |
+} |
+ |
// static |
ChromeHistoryClient* ChromeHistoryClientFactory::GetForProfile( |
Profile* profile) { |
@@ -36,7 +40,8 @@ ChromeHistoryClientFactory::~ChromeHistoryClientFactory() { |
KeyedService* ChromeHistoryClientFactory::BuildServiceInstanceFor( |
content::BrowserContext* context) const { |
return new ChromeHistoryClient( |
- BookmarkModelFactory::GetForProfile(static_cast<Profile*>(context))); |
+ BookmarkModelFactory::GetForProfile(static_cast<Profile*>(context)), |
+ static_cast<Profile*>(context)->GetTopSites()); |
} |
content::BrowserContext* ChromeHistoryClientFactory::GetBrowserContextToUse( |