Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / history / chrome_history_client_factory.cc
index b56a898..f612a18 100644 (file)
@@ -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(