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

Unified Diff: chrome/browser/page_load_metrics/page_load_tracker.h

Issue 2481013007: Improve tracking of user initiated page loads. (Closed)
Patch Set: revert broken logic Created 4 years, 1 month 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/page_load_metrics/page_load_tracker.h
diff --git a/chrome/browser/page_load_metrics/page_load_tracker.h b/chrome/browser/page_load_metrics/page_load_tracker.h
index 3d082f8e03afa7c0d96e3f9436edf8d6057e0160..46e60fda771c6891c4d5a9ca6efc8cc7a7d3ceef 100644
--- a/chrome/browser/page_load_metrics/page_load_tracker.h
+++ b/chrome/browser/page_load_metrics/page_load_tracker.h
@@ -247,9 +247,8 @@ class PageLoadTracker {
// be the first abort action the user performed.
UserAbortType abort_type_;
- // This boolean is only an approximation. As the aborts pipeline is updated,
Bryan McQuade 2016/11/10 15:51:22 I changed this comment as I feel this kind of comm
Charlie Harrison 2016/11/10 20:33:04 I'd like the comment to remain general, as it is i
Bryan McQuade 2016/11/10 20:58:18 Makes sense. I updated the comment to be a little
- // more abort types will have this set to true. Currently, this is only set
- // for navigations aborting navigations.
+ // Whether the page load that aborted this page load was user initiated. Only
+ // set if this page load's abort type is set to a value other than ABORT_NONE.
bool abort_user_initiated_;
base::TimeTicks abort_time_;
@@ -274,7 +273,7 @@ class PageLoadTracker {
// This is derived from the user gesture bit in the renderer. For browser
// initiated navigations this will always be true.
- bool user_gesture_;
+ bool user_initiated_;
// This is a subtle member. If a provisional load A gets aborted by
// provisional load B, which gets aborted by C that eventually commits, then

Powered by Google App Engine
This is Rietveld 408576698