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

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

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For trybot Created 5 years, 11 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.cc
diff --git a/chrome/browser/history/chrome_history_client.cc b/chrome/browser/history/chrome_history_client.cc
index b6a529b785df8c44f037eb5a4bf0b8d4ab329c8a..2cb84ae1fdea03d3647eddddf5042c553d68a960 100644
--- a/chrome/browser/history/chrome_history_client.cc
+++ b/chrome/browser/history/chrome_history_client.cc
@@ -17,9 +17,10 @@
using bookmarks::BookmarkModel;
-ChromeHistoryClient::ChromeHistoryClient(BookmarkModel* bookmark_model,
- Profile* profile,
- history::TopSites* top_sites)
+ChromeHistoryClient::ChromeHistoryClient(
+ BookmarkModel* bookmark_model,
+ Profile* profile,
+ const scoped_refptr<history::TopSites>& top_sites)
: bookmark_model_(bookmark_model),
profile_(profile),
top_sites_(top_sites) {
@@ -85,8 +86,7 @@ void ChromeHistoryClient::Shutdown() {
void ChromeHistoryClient::TopSitesLoaded(history::TopSites* top_sites) {
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_TOP_SITES_LOADED,
- content::Source<Profile>(profile_),
+ chrome::NOTIFICATION_TOP_SITES_LOADED, content::Source<Profile>(profile_),
content::Details<history::TopSites>(top_sites));
}

Powered by Google App Engine
This is Rietveld 408576698