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

Unified Diff: chrome/renderer/searchbox/searchbox_extension.cc

Issue 2544883006: Cleanup: Replace NTPLoggingTileSource by ntp_tiles::NTPTileSource (Closed)
Patch Set: tests 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/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 38ad0f9c08a872d8caf9f42ef29b1859feaeb6c0..fe57fb31c84bb834d79efd47457ef2d545dc6a8d 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -22,6 +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 "content/public/renderer/render_view.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "third_party/WebKit/public/web/WebDocument.h"
@@ -1019,9 +1020,10 @@ void SearchBoxExtensionWrapper::LogMostVisitedImpression(
DVLOG(1) << render_view << " LogMostVisitedImpression";
- if (args[1]->Uint32Value() <= static_cast<int>(NTPLoggingTileSource::LAST)) {
- NTPLoggingTileSource tile_source =
- static_cast<NTPLoggingTileSource>(args[1]->Uint32Value());
+ if (args[1]->Uint32Value() <=
+ static_cast<int>(ntp_tiles::NTPTileSource::LAST)) {
+ ntp_tiles::NTPTileSource tile_source =
+ static_cast<ntp_tiles::NTPTileSource>(args[1]->Uint32Value());
SearchBox::Get(render_view)->LogMostVisitedImpression(
args[0]->IntegerValue(), tile_source);
}
@@ -1041,9 +1043,10 @@ void SearchBoxExtensionWrapper::LogMostVisitedNavigation(
DVLOG(1) << render_view << " LogMostVisitedNavigation";
- if (args[1]->Uint32Value() <= static_cast<int>(NTPLoggingTileSource::LAST)) {
- NTPLoggingTileSource tile_source =
- static_cast<NTPLoggingTileSource>(args[1]->Uint32Value());
+ if (args[1]->Uint32Value() <=
+ static_cast<int>(ntp_tiles::NTPTileSource::LAST)) {
+ ntp_tiles::NTPTileSource tile_source =
+ static_cast<ntp_tiles::NTPTileSource>(args[1]->Uint32Value());
SearchBox::Get(render_view)->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