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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_user_data_logger.h

Issue 1007383003: Adds a new UMA histogram to measure the NTP load time since navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/browser/ui/webui/ntp/ntp_user_data_logger.h
diff --git a/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h b/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h
index 2f687a51a56b29da393752240014b9d929899ae0..583b26e6d7ab15aef6280bf44995a1115ee4acbc 100644
--- a/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h
+++ b/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h
@@ -97,6 +97,12 @@ class NTPUserDataLogger
// Total number of mouseovers for this NTP session.
size_t number_of_mouseovers_;
+ // Time from navigation start it took to load the NTP in milliseconds.
+ uint64 load_time_;
+
+ // Whether we have already emitted NTP stats for this web content.
Mathieu 2015/03/16 19:49:46 nit: web contents
fserb 2015/03/16 20:08:36 Done.
+ bool has_emitted_;
+
// The URL of this New Tab Page - varies based on NTP version.
GURL ntp_url_;

Powered by Google App Engine
This is Rietveld 408576698