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

Issue 2689803002: Ensure nearby URL count metric is properly initialized (Closed)

Created:
3 years, 10 months ago by mattreynolds
Modified:
3 years, 10 months ago
Reviewers:
Mark P
CC:
chromium-reviews, jdonnelly+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve nearby URL count metrics for Physical Web omnibox provider The nearby_url_count_ field was not initialized correctly in the query suggest case. This CL ensures that the field is always set to the number of metadata items returned by the Physical Web data source. A new histogram is added to record the number of nearby URLs when the omnibox is focused. Another histogram is added to detect how frequently this corner case occurs. BUG=691059 Review-Url: https://codereview.chromium.org/2689803002 Cr-Commit-Position: refs/heads/master@{#452620} Committed: https://chromium.googlesource.com/chromium/src/+/6b89f92fabae32da4caae8f1b0c387888ade9496

Patch Set 1 #

Total comments: 3

Patch Set 2 : add unit test, AtFocus histogram #

Total comments: 4

Patch Set 3 : split histogram into NearbyUrlCount.AtFocus and NearbyURLCount.AtMatchCreation #

Patch Set 4 : add new histogram to detect corner case #

Total comments: 2

Patch Set 5 : npos #

Total comments: 24

Patch Set 6 : changes for mpearson@ #

Patch Set 7 : fix errors #

Total comments: 4

Patch Set 8 : remove BeginOmniboxSession, re-add histogram description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -25 lines) Patch
M components/omnibox/browser/physical_web_provider.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -1 line 0 comments Download
M components/omnibox/browser/physical_web_provider.cc View 1 2 3 4 5 6 7 6 chunks +47 lines, -21 lines 0 comments Download
M components/omnibox/browser/physical_web_provider_unittest.cc View 1 2 3 2 chunks +81 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +55 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
mattreynolds
Hi Mark, PTAL Looks like I broke one of our metrics when I added query ...
3 years, 10 months ago (2017-02-10 20:16:50 UTC) #2
Mark P
On 2017/02/10 20:16:50, mattreynolds wrote: > Hi Mark, PTAL > > Looks like I broke ...
3 years, 10 months ago (2017-02-11 05:17:39 UTC) #3
mattreynolds
On 2017/02/11 05:17:39, Mark P wrote: > On 2017/02/10 20:16:50, mattreynolds wrote: > > Hi ...
3 years, 10 months ago (2017-02-13 19:00:05 UTC) #4
Mark P
On 2017/02/13 19:00:05, mattreynolds wrote: > On 2017/02/11 05:17:39, Mark P wrote: > > On ...
3 years, 10 months ago (2017-02-13 19:13:24 UTC) #5
mattreynolds
> > The metric is intended to record "the number of nearby Physical Web URLs ...
3 years, 10 months ago (2017-02-13 20:07:38 UTC) #6
mattreynolds
Hi Mark, I added the new histogram and a unit test, please take another look.
3 years, 10 months ago (2017-02-14 02:08:43 UTC) #7
Mark P
I've only had time to take a partial look. Here are preliminary comments: On 2017/02/13 ...
3 years, 10 months ago (2017-02-15 06:45:54 UTC) #8
Mark P
This changelist is still in your court, right? Let me know if you're waiting for ...
3 years, 10 months ago (2017-02-17 00:16:20 UTC) #9
mattreynolds
I don't know how those values were recorded. There must be some way to invoke ...
3 years, 10 months ago (2017-02-17 03:08:12 UTC) #10
Mark P
On 2017/02/17 03:08:12, mattreynolds wrote: > I don't know how those values were recorded. There ...
3 years, 10 months ago (2017-02-18 01:07:49 UTC) #11
Mark P
On Fri, Feb 17, 2017 at 5:07 PM, <mpearson@chromium.org> wrote: > - If we can't ...
3 years, 10 months ago (2017-02-18 05:23:12 UTC) #12
mattreynolds
> Did you forget to upload a new patchset? Oops, yes. > Please initialize the ...
3 years, 10 months ago (2017-02-21 23:45:07 UTC) #13
Mark P
On 2017/02/21 23:45:07, mattreynolds wrote: > > Did you forget to upload a new patchset? ...
3 years, 10 months ago (2017-02-22 06:25:39 UTC) #15
mattreynolds
I investigated Voice Search but couldn't get it to trigger the corner case. Voice Search ...
3 years, 10 months ago (2017-02-22 20:53:55 UTC) #16
Mark P
generally looks fine to me; just a series of minor comments. Sorry that this review ...
3 years, 10 months ago (2017-02-23 00:38:59 UTC) #17
mattreynolds
Thanks Mark! https://codereview.chromium.org/2689803002/diff/80001/components/omnibox/browser/physical_web_provider.cc File components/omnibox/browser/physical_web_provider.cc (right): https://codereview.chromium.org/2689803002/diff/80001/components/omnibox/browser/physical_web_provider.cc#newcode59 components/omnibox/browser/physical_web_provider.cc:59: const bool input_from_focus = input.from_omnibox_focus(); On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 02:03:07 UTC) #18
Mark P
lgtm modulo two comments, including one big one If you agree with me, feel free ...
3 years, 10 months ago (2017-02-23 05:09:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2689803002/140001
3 years, 10 months ago (2017-02-23 19:41:34 UTC) #22
mattreynolds
Thanks again! https://codereview.chromium.org/2689803002/diff/120001/components/omnibox/browser/physical_web_provider.cc File components/omnibox/browser/physical_web_provider.cc (right): https://codereview.chromium.org/2689803002/diff/120001/components/omnibox/browser/physical_web_provider.cc#newcode205 components/omnibox/browser/physical_web_provider.cc:205: // focuses the omnibox. On 2017/02/23 05:09:49, ...
3 years, 10 months ago (2017-02-23 19:42:14 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 20:54:26 UTC) #26
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/6b89f92fabae32da4caae8f1b0c3...

Powered by Google App Engine
This is Rietveld 408576698