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

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..26246c88fa28a3291c01d22087896991bd67a218 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 contents.
+ 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