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

Unified Diff: ios/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 | « ios/chrome/browser/ui/webui/OWNERS ('k') | ios/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: ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
diff --git a/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc b/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
index 5f39a6945cb507b37994ad2449534c89141cf003..8c3753aca9899a3bd459656187a805c2f82cdab6 100644
--- a/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
+++ b/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
@@ -8,7 +8,6 @@
#include "components/grit/components_resources.h"
#include "components/ntp_tiles/field_trial.h"
#include "components/ntp_tiles/most_visited_sites.h"
-#include "components/ntp_tiles/popular_sites.h"
#include "components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h"
#include "components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
@@ -37,7 +36,6 @@ class IOSNTPTilesInternalsMessageHandlerBridge
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,
@@ -80,12 +78,6 @@ IOSNTPTilesInternalsMessageHandlerBridge::MakeMostVisitedSites() {
ios::ChromeBrowserState::FromWebUIIOS(web_ui()));
}
-std::unique_ptr<ntp_tiles::PopularSites>
-IOSNTPTilesInternalsMessageHandlerBridge::MakePopularSites() {
- return IOSPopularSitesFactory::NewForBrowserState(
- ios::ChromeBrowserState::FromWebUIIOS(web_ui()));
-}
-
PrefService* IOSNTPTilesInternalsMessageHandlerBridge::GetPrefs() {
return ios::ChromeBrowserState::FromWebUIIOS(web_ui())->GetPrefs();
}
@@ -102,8 +94,6 @@ void IOSNTPTilesInternalsMessageHandlerBridge::CallJavascriptFunctionVector(
web_ui()->CallJavascriptFunction(name, values);
}
-} // namespace
-
web::WebUIIOSDataSource* CreateNTPTilesInternalsHTMLSource() {
web::WebUIIOSDataSource* source =
web::WebUIIOSDataSource::Create(kChromeUINTPTilesInternalsHost);
@@ -115,6 +105,8 @@ web::WebUIIOSDataSource* CreateNTPTilesInternalsHTMLSource() {
return source;
}
+} // namespace
+
NTPTilesInternalsUI::NTPTilesInternalsUI(web::WebUIIOS* web_ui)
: web::WebUIIOSController(web_ui) {
web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui),
« no previous file with comments | « ios/chrome/browser/ui/webui/OWNERS ('k') | ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698