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

Unified Diff: chrome/browser/ui/webui/popular_sites_internals_ui.cc

Issue 2572533002: Add ChromeMostVisitedSitesFactory (Closed)
Patch Set: Use factory for webui Created 4 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
« no previous file with comments | « chrome/browser/ui/webui/ntp_tiles_internals_ui.cc ('k') | components/ntp_tiles/most_visited_sites.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/popular_sites_internals_ui.cc
diff --git a/chrome/browser/ui/webui/popular_sites_internals_ui.cc b/chrome/browser/ui/webui/popular_sites_internals_ui.cc
index 4deae00232f494d30d6355b4a03758268c6fb982..daf09e3d4acc4ea52944ac167bbea0d23ebbf90d 100644
--- a/chrome/browser/ui/webui/popular_sites_internals_ui.cc
+++ b/chrome/browser/ui/webui/popular_sites_internals_ui.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/ui/webui/popular_sites_internals_ui.h"
-#include "chrome/browser/android/ntp/popular_sites.h"
+#include "chrome/browser/ntp_tiles/chrome_popular_sites_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/url_constants.h"
#include "components/grit/components_resources.h"
@@ -56,7 +56,7 @@ ChromePopularSitesInternalsMessageHandlerBridge::GetBlockingPool() {
std::unique_ptr<ntp_tiles::PopularSites>
ChromePopularSitesInternalsMessageHandlerBridge::MakePopularSites() {
- return ChromePopularSites::NewForProfile(Profile::FromWebUI(web_ui()));
+ return ChromePopularSitesFactory::NewForProfile(Profile::FromWebUI(web_ui()));
}
PrefService* ChromePopularSitesInternalsMessageHandlerBridge::GetPrefs() {
« no previous file with comments | « chrome/browser/ui/webui/ntp_tiles_internals_ui.cc ('k') | components/ntp_tiles/most_visited_sites.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698