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_ |