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

Issue 1010263002: [Autofill] Add FormEvent logging for "will submit form". (Closed)

Created:
5 years, 9 months ago by Mathieu
Modified:
5 years, 9 months ago
CC:
chromium-reviews, estade+watch_chromium.org, browser-components-watch_chromium.org, asvitkine+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Autofill] Add FormEvent logging for "will submit form". A previous CL split the AutofillManager::OnFormSubmitted logic into OnWillSubmit and OnFormSubmitted to support AJAX forms. This change splits the logged events similarly and introduces AutofillMetrics::FormEventLogger::OnWillSubmitForm, which is logged anytime a form is about to be submitted. We move FormEventLogger::OnDidSubmitForm back into AutofillManager::OnFormSubmitted, since it more closely matches what happened before. We will use the extra "will submit" logged events to determine the proportion of submitted forms that are AJAX (don't end up calling OnFormSubmitted). BUG=460488 TEST=AutofillMetricsTest Committed: https://crrev.com/6072951da5e97bb2571419005dae5da1f24e06cc Cr-Commit-Position: refs/heads/master@{#322169}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Changed histograms.xml wording #

Patch Set 3 : Changed approach #

Patch Set 4 : git cl format #

Total comments: 9

Patch Set 5 : addressed comments #

Patch Set 6 : rebase #

Patch Set 7 : logged once #

Total comments: 11

Patch Set 8 : nits #

Patch Set 9 : split #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -36 lines) Patch
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_metrics.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 2 3 4 5 6 7 8 34 chunks +437 lines, -31 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
Mathieu
Hi, please have a look!
5 years, 9 months ago (2015-03-17 18:10:27 UTC) #2
Evan Stade
mostly lg, +isherman for histograms https://codereview.chromium.org/1010263002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1010263002/diff/1/tools/metrics/histograms/histograms.xml#newcode1884 tools/metrics/histograms/histograms.xml:1884: + Tracks whether an ...
5 years, 9 months ago (2015-03-18 00:45:32 UTC) #4
Mathieu
On 2015/03/18 00:45:32, Evan Stade wrote: > mostly lg, +isherman for histograms > > https://codereview.chromium.org/1010263002/diff/1/tools/metrics/histograms/histograms.xml ...
5 years, 9 months ago (2015-03-18 17:40:05 UTC) #5
Mathieu
Please review and read the new description. The previous way was wrong since |user_submitted| was ...
5 years, 9 months ago (2015-03-18 18:33:02 UTC) #6
Ilya Sherman
I'd expect to see histograms.xml changes, since you're changing an UMA enum. Could you please ...
5 years, 9 months ago (2015-03-18 22:42:10 UTC) #7
Evan Stade
https://codereview.chromium.org/1010263002/diff/60001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/1010263002/diff/60001/components/autofill/core/browser/autofill_manager.cc#newcode393 components/autofill/core/browser/autofill_manager.cc:393: credit_card_form_event_logger_->OnDidSubmitForm(); can we keep the names the same? i.e. ...
5 years, 9 months ago (2015-03-20 20:55:03 UTC) #8
Mathieu
+walter Hi Walter, question below thanks! https://codereview.chromium.org/1010263002/diff/60001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/1010263002/diff/60001/components/autofill/core/browser/autofill_manager.cc#newcode393 components/autofill/core/browser/autofill_manager.cc:393: credit_card_form_event_logger_->OnDidSubmitForm(); On 2015/03/20 ...
5 years, 9 months ago (2015-03-23 15:24:02 UTC) #10
Walter Cacau
https://codereview.chromium.org/1010263002/diff/60001/components/autofill/core/browser/autofill_metrics.cc File components/autofill/core/browser/autofill_metrics.cc (right): https://codereview.chromium.org/1010263002/diff/60001/components/autofill/core/browser/autofill_metrics.cc#newcode573 components/autofill/core/browser/autofill_metrics.cc:573: Log(AutofillMetrics::FORM_EVENT_WILL_SUBMIT); On 2015/03/23 15:24:02, Mathieu Perreault wrote: > On ...
5 years, 9 months ago (2015-03-23 19:06:37 UTC) #11
Mathieu
On 2015/03/23 19:06:37, Walter Cacau wrote: > https://codereview.chromium.org/1010263002/diff/60001/components/autofill/core/browser/autofill_metrics.cc > File components/autofill/core/browser/autofill_metrics.cc (right): > > https://codereview.chromium.org/1010263002/diff/60001/components/autofill/core/browser/autofill_metrics.cc#newcode573 ...
5 years, 9 months ago (2015-03-23 19:17:33 UTC) #12
Walter Cacau
On 2015/03/23 19:17:33, Mathieu Perreault wrote: > On 2015/03/23 19:06:37, Walter Cacau wrote: > > ...
5 years, 9 months ago (2015-03-23 19:34:12 UTC) #13
Mathieu
On 2015/03/23 19:34:12, Walter Cacau wrote: > On 2015/03/23 19:17:33, Mathieu Perreault wrote: > > ...
5 years, 9 months ago (2015-03-23 20:13:37 UTC) #14
Ilya Sherman
https://codereview.chromium.org/1010263002/diff/120001/components/autofill/core/browser/autofill_metrics.cc File components/autofill/core/browser/autofill_metrics.cc (right): https://codereview.chromium.org/1010263002/diff/120001/components/autofill/core/browser/autofill_metrics.cc#newcode528 components/autofill/core/browser/autofill_metrics.cc:528: logged_suggestion_filled_was_masked_server_card_(false){}; nit: Please revert the diff on this line. ...
5 years, 9 months ago (2015-03-23 20:58:17 UTC) #15
Mathieu
Question as to splitting the metric further, below. Thanks! https://codereview.chromium.org/1010263002/diff/120001/components/autofill/core/browser/autofill_metrics.cc File components/autofill/core/browser/autofill_metrics.cc (right): https://codereview.chromium.org/1010263002/diff/120001/components/autofill/core/browser/autofill_metrics.cc#newcode528 components/autofill/core/browser/autofill_metrics.cc:528: ...
5 years, 9 months ago (2015-03-23 21:11:28 UTC) #16
Ilya Sherman
histograms changes LGTM https://codereview.chromium.org/1010263002/diff/120001/components/autofill/core/browser/autofill_metrics.cc File components/autofill/core/browser/autofill_metrics.cc (right): https://codereview.chromium.org/1010263002/diff/120001/components/autofill/core/browser/autofill_metrics.cc#newcode611 components/autofill/core/browser/autofill_metrics.cc:611: Log(AutofillMetrics::FORM_EVENT_WILL_SUBMIT_ONCE); On 2015/03/23 21:11:28, Mathieu Perreault ...
5 years, 9 months ago (2015-03-23 23:58:17 UTC) #17
Walter Cacau
On 2015/03/23 23:58:17, Ilya Sherman wrote: > histograms changes LGTM > > https://codereview.chromium.org/1010263002/diff/120001/components/autofill/core/browser/autofill_metrics.cc > File ...
5 years, 9 months ago (2015-03-24 00:01:07 UTC) #18
Mathieu
On 2015/03/24 00:01:07, Walter Cacau wrote: > On 2015/03/23 23:58:17, Ilya Sherman wrote: > > ...
5 years, 9 months ago (2015-03-24 14:04:20 UTC) #19
Walter Cacau
lgtm for metrics thanks for splitting!
5 years, 9 months ago (2015-03-24 23:59:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1010263002/90007
5 years, 9 months ago (2015-03-25 13:38:02 UTC) #23
commit-bot: I haz the power
Committed patchset #9 (id:90007)
5 years, 9 months ago (2015-03-25 15:59:01 UTC) #24
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 16:00:08 UTC) #25
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6072951da5e97bb2571419005dae5da1f24e06cc
Cr-Commit-Position: refs/heads/master@{#322169}

Powered by Google App Engine
This is Rietveld 408576698