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

Unified Diff: chrome/browser/precache/most_visited_urls_provider.cc

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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/precache/most_visited_urls_provider.cc
diff --git a/chrome/browser/precache/most_visited_urls_provider.cc b/chrome/browser/precache/most_visited_urls_provider.cc
index 37ec55356628f1344267ced456ccdf9dba7337a8..5791d5c3ed00e3144affd56bd51ce9dc9e3255d2 100644
--- a/chrome/browser/precache/most_visited_urls_provider.cc
+++ b/chrome/browser/precache/most_visited_urls_provider.cc
@@ -7,7 +7,7 @@
#include <list>
#include "base/bind.h"
-#include "chrome/browser/history/top_sites.h"
+#include "chrome/browser/history/top_sites_provider.h"
#include "components/history/core/browser/history_types.h"
#include "url/gurl.h"
@@ -32,13 +32,15 @@ void OnMostVisitedURLsReceived(
namespace precache {
-MostVisitedURLsProvider::MostVisitedURLsProvider(history::TopSites* top_sites)
- : top_sites_(top_sites) {}
+MostVisitedURLsProvider::MostVisitedURLsProvider(
+ history::TopSitesProvider* top_sites)
+ : top_sites_provider_(top_sites) {
+}
MostVisitedURLsProvider::~MostVisitedURLsProvider() {}
void MostVisitedURLsProvider::GetURLs(const GetURLsCallback& callback) {
- top_sites_->GetMostVisitedURLs(
+ top_sites_provider_->GetMostVisitedURLs(
base::Bind(&OnMostVisitedURLsReceived, callback), false);
}

Powered by Google App Engine
This is Rietveld 408576698