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

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

Issue 2572133002: Add more features to ntp-tiles-internal (Closed)
Patch Set: Add ntp_tiles owners to client webui owners Created 3 years, 10 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
« no previous file with comments | « chrome/browser/ui/webui/OWNERS ('k') | chrome/browser/ui/webui/popular_sites_internals_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
diff --git a/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc b/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
index e12782d398966b0131c69742fe8e284417da313a..9ae0657d8216fa8cb19ad338a663a5946fe85ae7 100644
--- a/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
+++ b/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
@@ -9,7 +9,6 @@
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/history/top_sites_factory.h"
#include "chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.h"
-#include "chrome/browser/ntp_tiles/chrome_popular_sites_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/suggestions/image_decoder_impl.h"
#include "chrome/browser/search/suggestions/suggestions_service_factory.h"
@@ -45,7 +44,6 @@ class ChromeNTPTilesInternalsMessageHandlerClient
bool SupportsNTPTiles() override;
bool DoesSourceExist(ntp_tiles::NTPTileSource source) override;
std::unique_ptr<ntp_tiles::MostVisitedSites> MakeMostVisitedSites() override;
- std::unique_ptr<ntp_tiles::PopularSites> MakePopularSites() override;
PrefService* GetPrefs() override;
void RegisterMessageCallback(
const std::string& message,
@@ -92,15 +90,6 @@ ChromeNTPTilesInternalsMessageHandlerClient::MakeMostVisitedSites() {
Profile::FromWebUI(web_ui()));
}
-std::unique_ptr<ntp_tiles::PopularSites>
-ChromeNTPTilesInternalsMessageHandlerClient::MakePopularSites() {
-#if defined(OS_ANDROID)
- return ChromePopularSitesFactory::NewForProfile(Profile::FromWebUI(web_ui()));
-#else
- return nullptr;
-#endif
-}
-
PrefService* ChromeNTPTilesInternalsMessageHandlerClient::GetPrefs() {
return Profile::FromWebUI(web_ui())->GetPrefs();
}
« no previous file with comments | « chrome/browser/ui/webui/OWNERS ('k') | chrome/browser/ui/webui/popular_sites_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698