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

Unified Diff: chrome/common/ntp_logging_events.h

Issue 2117373002: Cleanup: Change LogMostVisitedImpression|Navigation APIs to take an enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ntp_uma_cleanup
Patch Set: TODO Created 4 years, 5 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
Index: chrome/common/ntp_logging_events.h
diff --git a/chrome/common/ntp_logging_events.h b/chrome/common/ntp_logging_events.h
index be1bfeef6358ab75c2b94edd9b4cbed86ddf11fe..cec183415a84dfa6664a7606dd5abdbf59107d05 100644
--- a/chrome/common/ntp_logging_events.h
+++ b/chrome/common/ntp_logging_events.h
@@ -49,4 +49,14 @@ enum NTPLoggingEventType {
NTP_EVENT_TYPE_LAST = NTP_TILE_LOADED
};
+// The source of an NTP tile.
+// Note: Keep in sync with browser/resources/local_ntp/most_visited_util.js and
+// browser/resources/local_ntp/most_visited_single.js.
+// TODO(treib): Merge this into MostVisitedSource from components/ntp_tiles.
+enum NTPLoggingTileSource {
dcheng 2016/07/06 01:51:25 Nit: Can we make this a scoped enum, i.e. enum cla
Marc Treib 2016/07/06 08:49:06 The enum values are duplicated in JavaScript code.
Bernhard Bauer 2016/07/06 09:00:51 BUT I WANTED TO USE THE SHORT VALUES IN JAVASCRIPT
Marc Treib 2016/07/06 10:14:38 Which is still a lot less convenient (and thus mor
+ NTP_TILE_SOURCE_CLIENT = 0,
+ NTP_TILE_SOURCE_SERVER = 1,
+ NTP_TILE_SOURCE_LAST = NTP_TILE_SOURCE_SERVER
+};
+
#endif // CHROME_COMMON_NTP_LOGGING_EVENTS_H_

Powered by Google App Engine
This is Rietveld 408576698