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

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

Issue 2790463003: ntp_tiles: Cleanup enum names (Closed)
Patch Set: add back histogram enums Created 3 years, 8 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/ntp/most_visited_cell.mm ('k') | tools/metrics/histograms/histograms.xml » ('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 2f1bb4ebc29bb2e44503ee11cf0b91c05972e2d6..e9cc468c44d09101a80b0732c967b0a70fb169f4 100644
--- a/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
+++ b/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
@@ -34,7 +34,7 @@ class IOSNTPTilesInternalsMessageHandlerBridge
// ntp_tiles::NTPTilesInternalsMessageHandlerClient
bool SupportsNTPTiles() override;
- bool DoesSourceExist(ntp_tiles::NTPTileSource source) override;
+ bool DoesSourceExist(ntp_tiles::TileSource source) override;
std::unique_ptr<ntp_tiles::MostVisitedSites> MakeMostVisitedSites() override;
PrefService* GetPrefs() override;
void RegisterMessageCallback(
@@ -58,13 +58,13 @@ bool IOSNTPTilesInternalsMessageHandlerBridge::SupportsNTPTiles() {
}
bool IOSNTPTilesInternalsMessageHandlerBridge::DoesSourceExist(
- ntp_tiles::NTPTileSource source) {
+ ntp_tiles::TileSource source) {
switch (source) {
- case ntp_tiles::NTPTileSource::TOP_SITES:
- case ntp_tiles::NTPTileSource::SUGGESTIONS_SERVICE:
- case ntp_tiles::NTPTileSource::POPULAR:
+ case ntp_tiles::TileSource::TOP_SITES:
+ case ntp_tiles::TileSource::SUGGESTIONS_SERVICE:
+ case ntp_tiles::TileSource::POPULAR:
return true;
- case ntp_tiles::NTPTileSource::WHITELIST:
+ case ntp_tiles::TileSource::WHITELIST:
return false;
}
NOTREACHED();
« no previous file with comments | « ios/chrome/browser/ui/ntp/most_visited_cell.mm ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698