Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2085)

Unified Diff: chrome/browser/history/chrome_history_client_factory.cc

Issue 441623002: Eliminate sending NOTIFICATION_TOP_SITES_* from TopSites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698