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

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_model.h

Issue 18866003: Add histogram Omnibox.FocusToEditTime for time in milliseconds between a user focus and edit. (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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/browser/ui/omnibox/omnibox_edit_model.h
===================================================================
--- chrome/browser/ui/omnibox/omnibox_edit_model.h (revision 209999)
+++ chrome/browser/ui/omnibox/omnibox_edit_model.h (working copy)
@@ -444,6 +444,9 @@
// autocomplete text that has not yet been accepted.
string16 user_text_;
+ // We keep track of when the user last focused on the omnibox.
+ base::TimeTicks time_user_last_focused_on_omnibox_;
+
// We keep track of when the user began modifying the omnibox text.
// This should be valid whenever user_input_in_progress_ is true.
base::TimeTicks time_user_first_modified_omnibox_;

Powered by Google App Engine
This is Rietveld 408576698