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

Unified Diff: chrome/renderer/searchbox/searchbox_extension.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 | « chrome/renderer/searchbox/searchbox.cc ('k') | components/ntp_tiles/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
index aa34ac68909f94fffa737ab42b2dc363909d6c39..c2134402bcf620617c53fe502aac6b83f4e9e1a8 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -22,7 +22,7 @@
#include "chrome/grit/renderer_resources.h"
#include "chrome/renderer/searchbox/searchbox.h"
#include "components/crx_file/id_util.h"
-#include "components/ntp_tiles/ntp_tile_source.h"
+#include "components/ntp_tiles/tile_source.h"
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_view.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
@@ -1001,10 +1001,9 @@ void SearchBoxExtensionWrapper::LogMostVisitedImpression(
DVLOG(1) << render_frame << " LogMostVisitedImpression";
- if (args[1]->Uint32Value() <=
- static_cast<int>(ntp_tiles::NTPTileSource::LAST)) {
- ntp_tiles::NTPTileSource tile_source =
- static_cast<ntp_tiles::NTPTileSource>(args[1]->Uint32Value());
+ if (args[1]->Uint32Value() <= static_cast<int>(ntp_tiles::TileSource::LAST)) {
+ ntp_tiles::TileSource tile_source =
+ static_cast<ntp_tiles::TileSource>(args[1]->Uint32Value());
SearchBox::Get(render_frame)
->LogMostVisitedImpression(args[0]->IntegerValue(), tile_source);
}
@@ -1025,10 +1024,9 @@ void SearchBoxExtensionWrapper::LogMostVisitedNavigation(
DVLOG(1) << render_frame << " LogMostVisitedNavigation";
- if (args[1]->Uint32Value() <=
- static_cast<int>(ntp_tiles::NTPTileSource::LAST)) {
- ntp_tiles::NTPTileSource tile_source =
- static_cast<ntp_tiles::NTPTileSource>(args[1]->Uint32Value());
+ if (args[1]->Uint32Value() <= static_cast<int>(ntp_tiles::TileSource::LAST)) {
+ ntp_tiles::TileSource tile_source =
+ static_cast<ntp_tiles::TileSource>(args[1]->Uint32Value());
SearchBox::Get(render_frame)
->LogMostVisitedNavigation(args[0]->IntegerValue(), tile_source);
}
« no previous file with comments | « chrome/renderer/searchbox/searchbox.cc ('k') | components/ntp_tiles/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698