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

Issue 2776223002: Adds UKM for autofill attributes in form_structure. (Closed)

Created:
3 years, 9 months ago by csashi
Modified:
3 years, 8 months ago
Reviewers:
sebsg, Steven Holte
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, rkaplow
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds UKM for autofill attributes in form_structure. BUG=706646 Review-Url: https://codereview.chromium.org/2776223002 Cr-Commit-Position: refs/heads/master@{#461005} Committed: https://chromium.googlesource.com/chromium/src/+/c6d68221043cb769554616d3658fd99b299024a2

Patch Set 1 #

Patch Set 2 : Adds UKM for autofill attributes in form_structure. #

Patch Set 3 : Adds UKM for autofill attributes in form_structure. #

Total comments: 5

Patch Set 4 : Uses vector of pairs instead of map for metrics. #

Total comments: 2

Patch Set 5 : Fixes typo: Changes flag name from kAutofillUkmLogging -> AutofillUkmLogging #

Patch Set 6 : Fixes typo: Changes flag name from kAutofillUkmLogging -> AutofillUkmLogging #

Patch Set 7 : Updates tests to account for multiple metrics for same source_url(). #

Patch Set 8 : Updates tests to account for multiple metrics for same source_url(). #

Total comments: 5

Patch Set 9 : Makes FORM_PARSED with and without hints as exclusive metrics. #

Patch Set 10 : Makes FORM_PARSED with and without hints as exclusive metrics. #

Patch Set 11 : Resolves merge conflicts with FORM_CONTAINS_UPI_VPA_HINT. #

Patch Set 12 : Resolves merge conflicts with FORM_CONTAINS_UPI_VPA_HINT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -186 lines) Patch
M components/autofill/core/browser/autofill_assistant_unittest.cc View 1 2 3 4 5 6 chunks +6 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_experiments.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 26 chunks +79 lines, -28 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +202 lines, -31 lines 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -7 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 2 3 4 5 6 7 8 9 10 50 chunks +52 lines, -52 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 3 51 chunks +51 lines, -51 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 80 (52 generated)
csashi
Hi Mathieu, Please take a look. I will add additional unit-tests if you are OK ...
3 years, 9 months ago (2017-03-27 17:31:53 UTC) #2
csashi
Hi Sebastien, Can you also take a look? Thanks, -sashi.
3 years, 9 months ago (2017-03-27 17:47:26 UTC) #7
Mathieu
https://codereview.chromium.org/2776223002/diff/40001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2776223002/diff/40001/components/autofill/core/browser/autofill_manager.cc#newcode1929 components/autofill/core/browser/autofill_manager.cc:1929: pending_upload_request_url_); FormStructure::source_url is what you need, so can be ...
3 years, 9 months ago (2017-03-27 18:58:55 UTC) #16
csashi
Hi, I modified the interface to take a vector of metrics instead of a map ...
3 years, 8 months ago (2017-03-27 23:37:44 UTC) #19
Mathieu
https://codereview.chromium.org/2776223002/diff/60001/components/autofill/core/browser/autofill_metrics_unittest.cc File components/autofill/core/browser/autofill_metrics_unittest.cc (right): https://codereview.chromium.org/2776223002/diff/60001/components/autofill/core/browser/autofill_metrics_unittest.cc#newcode416 components/autofill/core/browser/autofill_metrics_unittest.cc:416: scoped_feature_list_.InitAndEnableFeature(kAutofillUkmLogging); Sorry that I didn't catch this earlier, but ...
3 years, 8 months ago (2017-03-27 23:59:31 UTC) #24
csashi
https://codereview.chromium.org/2776223002/diff/60001/components/autofill/core/browser/autofill_metrics_unittest.cc File components/autofill/core/browser/autofill_metrics_unittest.cc (right): https://codereview.chromium.org/2776223002/diff/60001/components/autofill/core/browser/autofill_metrics_unittest.cc#newcode416 components/autofill/core/browser/autofill_metrics_unittest.cc:416: scoped_feature_list_.InitAndEnableFeature(kAutofillUkmLogging); On 2017/03/27 23:59:31, Mathieu wrote: > Sorry that ...
3 years, 8 months ago (2017-03-28 00:14:25 UTC) #25
sebsg
Hi Sashi, please see my comment inline. https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc#newcode369 components/autofill/core/browser/form_structure.cc:369: {AutofillMetrics::FILLABLE_FORM_CONTAINS_TYPE_HINTS, by ...
3 years, 8 months ago (2017-03-29 13:52:59 UTC) #30
csashi
Hi Sebastien, Please take a look. Thanks! -sashi. https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc#newcode369 components/autofill/core/browser/form_structure.cc:369: {AutofillMetrics::FILLABLE_FORM_CONTAINS_TYPE_HINTS, ...
3 years, 8 months ago (2017-03-29 16:15:11 UTC) #31
sebsg
https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc#newcode369 components/autofill/core/browser/form_structure.cc:369: {AutofillMetrics::FILLABLE_FORM_CONTAINS_TYPE_HINTS, On 2017/03/29 16:15:11, csashi wrote: > On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 17:55:13 UTC) #32
sebsg
https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc#newcode369 components/autofill/core/browser/form_structure.cc:369: {AutofillMetrics::FILLABLE_FORM_CONTAINS_TYPE_HINTS, On 2017/03/29 17:55:13, sebsg wrote: > On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 18:46:10 UTC) #33
Mathieu
On 2017/03/29 18:46:10, sebsg wrote: > https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc > File components/autofill/core/browser/form_structure.cc (right): > > https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc#newcode369 > ...
3 years, 8 months ago (2017-03-29 20:32:05 UTC) #34
Mathieu
On 2017/03/29 20:32:05, Mathieu wrote: > On 2017/03/29 18:46:10, sebsg wrote: > > > https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc ...
3 years, 8 months ago (2017-03-29 20:32:33 UTC) #36
csashi
Hi Sebastien, Please take a look. Thanks. -sashi. https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/2776223002/diff/140001/components/autofill/core/browser/form_structure.cc#newcode369 components/autofill/core/browser/form_structure.cc:369: {AutofillMetrics::FILLABLE_FORM_CONTAINS_TYPE_HINTS, ...
3 years, 8 months ago (2017-03-30 00:52:12 UTC) #38
sebsg
Thanks for fixing this. LGTM % a small comment. Could you please just update the ...
3 years, 8 months ago (2017-03-30 12:49:14 UTC) #43
csashi
On 2017/03/30 12:49:14, sebsg wrote: > Thanks for fixing this. LGTM % a small comment. ...
3 years, 8 months ago (2017-03-30 16:48:24 UTC) #44
csashi
Hi Steven, Can you please approve the change to histograms.xml? Thanks, -sashi.
3 years, 8 months ago (2017-03-30 16:50:17 UTC) #46
Steven Holte
histograms lgtm
3 years, 8 months ago (2017-03-30 17:44:26 UTC) #47
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/2776223002/180001
3 years, 8 months ago (2017-03-30 17:45:26 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/183695)
3 years, 8 months ago (2017-03-30 19:31:18 UTC) #52
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/2776223002/180001
3 years, 8 months ago (2017-03-30 19:35:36 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/399034)
3 years, 8 months ago (2017-03-30 19:47:08 UTC) #56
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/2776223002/180001
3 years, 8 months ago (2017-03-30 20:38:50 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/399110)
3 years, 8 months ago (2017-03-30 20:50:49 UTC) #60
csashi
Hi Roger, My change crossed your changed which added another entry to DeveloperEngagementMetric - Can ...
3 years, 8 months ago (2017-03-30 23:13:15 UTC) #64
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/2776223002/220001
3 years, 8 months ago (2017-03-31 02:50:59 UTC) #73
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/chromium/src/+/c6d68221043cb769554616d3658fd99b299024a2
3 years, 8 months ago (2017-03-31 02:56:45 UTC) #76
csashi
On 2017/03/30 23:13:15, csashi wrote: > Hi Roger, > My change crossed your changed which ...
3 years, 8 months ago (2017-03-31 03:59:37 UTC) #77
Roger McFarlane (Chromium)
3 years, 8 months ago (2017-03-31 14:50:53 UTC) #80
Message was sent while issue was closed.
On 2017/03/31 03:59:37, csashi wrote:
> On 2017/03/30 23:13:15, csashi wrote:
> > Hi Roger,
> > My change crossed your changed which added another entry to
> > DeveloperEngagementMetric - Can you confirm that the
> FORM_CONTAINS_UPI_VPA_HINT
> > may be true, but the form is not autofillable? Otherwise, we can have 3
> mutually
> > exclusive metrics:
> > 1. NO_HINTS
> > 2. AUTOCOMPLETE_HINTS
> > 3. UPI_VPA_HINT
> > 
> > I suppose it is possible that a form has both autocomplete and UPI_VPA hint
> but
> > if the UPI_VPA_HINT is a stronger hint than the autocomplete hint we can log
> > UPI_VPA_HINT and not log AUTOCOMPLETE_HINTS.
> > 
> > Thanks!
> > -sashi.
> 
> Hi Roger,
> I committed this patch to make the Fri. cutoff. I will incorporate the VPA
HINT
> in
> a follow up CL.
> -sashi.

UPI-VPA hint is independent of whether or not the form is fillable.

This was not a mutually exclusive metric when my CL was written.

As you've formulated above, UPI-VPA is a subset of times AUTOCOMPLETE_HINTS is
incremented.

Powered by Google App Engine
This is Rietveld 408576698