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

Issue 20587003: InstantExtended: record initial focus state for omnibox interactions. (Closed)

Created:
7 years, 5 months ago by samarth
Modified:
7 years, 4 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

InstantExtended: record initial focus state for omnibox interactions. Keep track of whether omnibox was visibly or invisibly focused when user first started typing and record that state in OmniboxLog. BUG=264069 R=isherman@chromium.org, mpearson@chromium.org, pkasting@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216067

Patch Set 1 #

Total comments: 9

Patch Set 2 : Dont reset in Revert. #

Patch Set 3 : Address comments. #

Patch Set 4 : Rebase. #

Patch Set 5 : Separate enum. #

Patch Set 6 : Fix comments. #

Total comments: 18

Patch Set 7 : Rebase. #

Patch Set 8 : Address comment. #

Patch Set 9 : Add parens. #

Patch Set 10 : Remove obsolete field. #

Patch Set 11 : Remove field. #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -14 lines) Patch
M chrome/browser/autocomplete/autocomplete_input.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 3 4 5 6 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 7 8 6 chunks +27 lines, -8 lines 0 comments Download
M chrome/common/metrics/proto/omnibox_event.proto View 1 2 3 4 5 6 7 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
samarth
Need to test this out a bit more but I think this works. Thanks, Samarth
7 years, 5 months ago (2013-07-26 00:43:37 UTC) #1
Mark P
This looks reasonable to me. I notice there are other calls to SetFocus() besides RestoreState(). ...
7 years, 5 months ago (2013-07-26 01:04:18 UTC) #2
samarth
+pkasting for OWNERS Played with this some more and it works as far as I ...
7 years, 5 months ago (2013-07-26 22:40:12 UTC) #3
Mark P
I'll lgtm this, partially so it gets the metrics OWNERS stamp, but please wait for ...
7 years, 5 months ago (2013-07-26 22:48:34 UTC) #4
Peter Kasting
https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode453 chrome/browser/ui/omnibox/omnibox_edit_model.cc:453: focus_state_for_input_ = OMNIBOX_FOCUS_NONE; Is this right? What if the ...
7 years, 5 months ago (2013-07-26 22:58:08 UTC) #5
samarth
https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode453 chrome/browser/ui/omnibox/omnibox_edit_model.cc:453: focus_state_for_input_ = OMNIBOX_FOCUS_NONE; On 2013/07/26 22:58:09, Peter Kasting wrote: ...
7 years, 5 months ago (2013-07-26 23:00:55 UTC) #6
samarth
https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode453 chrome/browser/ui/omnibox/omnibox_edit_model.cc:453: focus_state_for_input_ = OMNIBOX_FOCUS_NONE; On 2013/07/26 23:00:55, samarth wrote: > ...
7 years, 5 months ago (2013-07-26 23:19:01 UTC) #7
Peter Kasting
Comments for both of you below. https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode453 chrome/browser/ui/omnibox/omnibox_edit_model.cc:453: focus_state_for_input_ = OMNIBOX_FOCUS_NONE; ...
7 years, 5 months ago (2013-07-26 23:22:34 UTC) #8
Mark P
https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode453 chrome/browser/ui/omnibox/omnibox_edit_model.cc:453: focus_state_for_input_ = OMNIBOX_FOCUS_NONE; On 2013/07/26 23:22:34, Peter Kasting wrote: ...
7 years, 5 months ago (2013-07-26 23:36:34 UTC) #9
samarth
Thanks, Samarth https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/20587003/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode1279 chrome/browser/ui/omnibox/omnibox_edit_model.cc:1279: } else if (focus_state_for_input_ == OMNIBOX_FOCUS_INVISIBLE) { ...
7 years, 4 months ago (2013-07-29 18:55:35 UTC) #10
Peter Kasting
On 2013/07/29 18:55:35, samarth wrote: > So when I initially wrote the code around invisible ...
7 years, 4 months ago (2013-07-29 19:15:47 UTC) #11
Mark P
Two FYI comments: I'm fine with changing the name of the proposed new PageClassification enums ...
7 years, 4 months ago (2013-07-29 19:29:25 UTC) #12
samarth
+isherman for metrics On 2013/07/29 19:15:47, Peter Kasting wrote: > If (3) is your restatement ...
7 years, 4 months ago (2013-08-02 17:24:57 UTC) #13
Mark P
On Fri, Aug 2, 2013 at 10:24 AM, <samarth@chromium.org> wrote: > > Mark: after syncing, ...
7 years, 4 months ago (2013-08-02 17:54:40 UTC) #14
Peter Kasting
https://codereview.chromium.org/20587003/diff/24001/chrome/browser/autocomplete/autocomplete_input.h File chrome/browser/autocomplete/autocomplete_input.h (right): https://codereview.chromium.org/20587003/diff/24001/chrome/browser/autocomplete/autocomplete_input.h#newcode68 chrome/browser/autocomplete/autocomplete_input.h:68: INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS = 7, It's inappropriate to add this data ...
7 years, 4 months ago (2013-08-02 17:59:37 UTC) #15
Mark P
https://codereview.chromium.org/20587003/diff/24001/chrome/browser/autocomplete/autocomplete_input.h File chrome/browser/autocomplete/autocomplete_input.h (right): https://codereview.chromium.org/20587003/diff/24001/chrome/browser/autocomplete/autocomplete_input.h#newcode68 chrome/browser/autocomplete/autocomplete_input.h:68: INSTANT_NEW_TAB_PAGE_WITH_OMNIBOX_AS_STARTING_FOCUS = 7, On 2013/08/02 17:59:38, Peter Kasting wrote: ...
7 years, 4 months ago (2013-08-02 18:10:39 UTC) #16
Peter Kasting
On 2013/08/02 18:10:39, Mark P wrote: > I explicitly asked him to include it in ...
7 years, 4 months ago (2013-08-02 18:12:43 UTC) #17
Mark P
On Fri, Aug 2, 2013 at 11:12 AM, <pkasting@chromium.org> wrote: > On 2013/08/02 18:10:39, Mark ...
7 years, 4 months ago (2013-08-02 18:18:40 UTC) #18
Peter Kasting
On 2013/08/02 18:18:40, Mark P wrote: > I seriously don't want to have to muck ...
7 years, 4 months ago (2013-08-02 18:25:04 UTC) #19
Mark P
On Fri, Aug 2, 2013 at 11:25 AM, <pkasting@chromium.org> wrote: > > Given that the ...
7 years, 4 months ago (2013-08-02 18:33:17 UTC) #20
Peter Kasting
OK. You ultimately understand this better than me, and I'd rather get to something more ...
7 years, 4 months ago (2013-08-02 18:36:27 UTC) #21
Mark P
On Fri, Aug 2, 2013 at 11:36 AM, <pkasting@chromium.org> wrote: > I'd rather get to ...
7 years, 4 months ago (2013-08-02 18:58:38 UTC) #22
Ilya Sherman
metrics changes LGTM https://codereview.chromium.org/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc#newcode158 chrome/browser/metrics/metrics_log.cc:158: return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE; nit: NOTREACHED()? Maybe you ...
7 years, 4 months ago (2013-08-02 21:47:32 UTC) #23
Mark P
https://codereview.chromium.org/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc#newcode158 chrome/browser/metrics/metrics_log.cc:158: return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE; You realize this suggestion is the exact ...
7 years, 4 months ago (2013-08-02 21:53:24 UTC) #24
Ilya Sherman
https://codereview.chromium.org/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc#newcode158 chrome/browser/metrics/metrics_log.cc:158: return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE; On 2013/08/02 21:53:24, Mark P wrote: > ...
7 years, 4 months ago (2013-08-02 22:01:49 UTC) #25
Mark P
https://codereview.chromium.org/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc#newcode158 chrome/browser/metrics/metrics_log.cc:158: return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE; On 2013/08/02 22:01:49, Ilya Sherman wrote: > ...
7 years, 4 months ago (2013-08-02 22:08:42 UTC) #26
Mark P
https://codereview.chromium.org/20587003/diff/24001/chrome/common/metrics/proto/omnibox_event.proto File chrome/common/metrics/proto/omnibox_event.proto (right): https://codereview.chromium.org/20587003/diff/24001/chrome/common/metrics/proto/omnibox_event.proto#newcode82 chrome/common/metrics/proto/omnibox_event.proto:82: INSTANT_NEW_TAB_PAGE_WITH_FAKEBOX_AS_STARTING_FOCUS = 8; On 2013/08/02 21:53:24, Mark P wrote: ...
7 years, 4 months ago (2013-08-03 00:19:03 UTC) #27
samarth
Thanks for making the change Mark! Samarth https://codereview.chromium.org/20587003/diff/24001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/20587003/diff/24001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode1029 chrome/browser/ui/omnibox/omnibox_edit_model.cc:1029: focus_source_ = ...
7 years, 4 months ago (2013-08-06 16:29:24 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/20587003/46001
7 years, 4 months ago (2013-08-06 16:29:55 UTC) #29
Mark P
https://chromiumcodereview.appspot.com/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://chromiumcodereview.appspot.com/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc#newcode158 chrome/browser/metrics/metrics_log.cc:158: return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE; On 2013/08/02 22:08:42, Mark P wrote: > ...
7 years, 4 months ago (2013-08-06 17:22:14 UTC) #30
samarth
https://chromiumcodereview.appspot.com/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://chromiumcodereview.appspot.com/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc#newcode158 chrome/browser/metrics/metrics_log.cc:158: return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE; On 2013/08/06 17:22:14, Mark P wrote: > ...
7 years, 4 months ago (2013-08-06 17:30:44 UTC) #31
Mark P
https://chromiumcodereview.appspot.com/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://chromiumcodereview.appspot.com/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc#newcode158 chrome/browser/metrics/metrics_log.cc:158: return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE; On 2013/08/06 17:30:45, samarth wrote: > On ...
7 years, 4 months ago (2013-08-06 17:34:13 UTC) #32
samarth
https://chromiumcodereview.appspot.com/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://chromiumcodereview.appspot.com/20587003/diff/24001/chrome/browser/metrics/metrics_log.cc#newcode158 chrome/browser/metrics/metrics_log.cc:158: return OmniboxEventProto::OBSOLETE_INSTANT_NEW_TAB_PAGE; On 2013/08/06 17:34:14, Mark P wrote: > ...
7 years, 4 months ago (2013-08-06 17:43:02 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/20587003/75001
7 years, 4 months ago (2013-08-06 17:51:59 UTC) #34
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=184171
7 years, 4 months ago (2013-08-06 22:28:05 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/20587003/75001
7 years, 4 months ago (2013-08-06 22:33:52 UTC) #36
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=91326
7 years, 4 months ago (2013-08-07 02:30:04 UTC) #37
samarth
7 years, 4 months ago (2013-08-07 03:23:51 UTC) #38
Message was sent while issue was closed.
Committed patchset #12 manually as r216067 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698