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

Issue 2740633002: [Autofill] Add upstreaming UKM (Closed)

Created:
3 years, 9 months ago by sebsg
Modified:
3 years, 9 months ago
CC:
chromium-reviews, pkl (ping after 24h if needed), droger+watchlist_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, sdefresne+watchlist_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, marq+watch_chromium.org, noyau+watch_chromium.org, blundell+watchlist_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, sync-reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Autofill] Add upstreaming UKM BUG=699256 Review-Url: https://codereview.chromium.org/2740633002 Cr-Commit-Position: refs/heads/master@{#456173} Committed: https://chromium.googlesource.com/chromium/src/+/adcdf2d7c58a495e0f917a50148c2f041a1a6e85

Patch Set 1 #

Total comments: 9

Patch Set 2 : Re-do #

Total comments: 10

Patch Set 3 : Addressed comments + feature flag #

Total comments: 6

Patch Set 4 : Addressed comments #

Total comments: 1

Patch Set 5 : Added tests #

Total comments: 4

Patch Set 6 : bool -> void return value #

Patch Set 7 : Fix for Android and iOS #

Total comments: 14

Patch Set 8 : Addressed rkaplow's comments #

Patch Set 9 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -1 line) Patch
M android_webview/native/aw_autofill_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_autofill_client.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/BUILD.gn View 1 2 3 4 5 4 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/DEPS View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_client.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_experiments.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_experiments.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 5 chunks +16 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 30 chunks +94 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.h View 1 2 3 4 5 6 7 8 2 chunks +25 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 +44 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 2 3 4 5 6 7 7 chunks +116 lines, -0 lines 0 comments Download
M components/autofill/core/browser/test_autofill_client.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M components/autofill/core/browser/test_autofill_client.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/ukm/ukm_service.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/autofill/autofill_client_ios.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/autofill/autofill_client_ios.mm View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 93 (69 generated)
sebsg
Hi Math, PTAL?
3 years, 9 months ago (2017-03-08 18:25:22 UTC) #26
sebsg
Hey Math, I changed the code in autofill_ukm to be way more general. WDYT?
3 years, 9 months ago (2017-03-08 22:11:54 UTC) #29
Mathieu
Let's try to keep the PersonalDataManager out of this. In AutofillManager, when we need to ...
3 years, 9 months ago (2017-03-08 22:33:49 UTC) #30
Mathieu
Oh no! Many draft comments were sent! Ignore more of them.
3 years, 9 months ago (2017-03-08 22:34:13 UTC) #31
sebsg
Got a bit confused by the comments :P By I think this patch is much ...
3 years, 9 months ago (2017-03-09 15:50:00 UTC) #33
Mathieu
+added bonus, let's put a base::Feature around the code (inside the static function that I'm ...
3 years, 9 months ago (2017-03-09 18:40:49 UTC) #34
sebsg
Another look? https://codereview.chromium.org/2740633002/diff/160001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2740633002/diff/160001/components/autofill/core/browser/autofill_manager.cc#newcode216 components/autofill/core/browser/autofill_manager.cc:216: if (upload_decision >= AutofillMetrics::NUM_CARD_UPLOAD_DECISION_METRICS) On 2017/03/09 18:40:49, ...
3 years, 9 months ago (2017-03-09 19:57:04 UTC) #37
Mathieu
https://codereview.chromium.org/2740633002/diff/200001/components/autofill/core/browser/autofill_experiments.cc File components/autofill/core/browser/autofill_experiments.cc (right): https://codereview.chromium.org/2740633002/diff/200001/components/autofill/core/browser/autofill_experiments.cc#newcode35 components/autofill/core/browser/autofill_experiments.cc:35: const base::Feature kAutofillUkmLogging{"AutofillLogUkm", AutofillUkmLogging is also a good feature ...
3 years, 9 months ago (2017-03-09 20:13:26 UTC) #41
Mathieu
On 2017/03/09 20:13:26, Mathieu Perreault wrote: > https://codereview.chromium.org/2740633002/diff/200001/components/autofill/core/browser/autofill_experiments.cc > File components/autofill/core/browser/autofill_experiments.cc (right): > > https://codereview.chromium.org/2740633002/diff/200001/components/autofill/core/browser/autofill_experiments.cc#newcode35 ...
3 years, 9 months ago (2017-03-09 20:13:45 UTC) #42
sebsg
PTAL? https://codereview.chromium.org/2740633002/diff/200001/components/autofill/core/browser/autofill_experiments.cc File components/autofill/core/browser/autofill_experiments.cc (right): https://codereview.chromium.org/2740633002/diff/200001/components/autofill/core/browser/autofill_experiments.cc#newcode35 components/autofill/core/browser/autofill_experiments.cc:35: const base::Feature kAutofillUkmLogging{"AutofillLogUkm", On 2017/03/09 20:13:26, Mathieu Perreault ...
3 years, 9 months ago (2017-03-09 20:52:16 UTC) #44
sebsg
https://codereview.chromium.org/2740633002/diff/220001/components/ukm/ukm_service.h File components/ukm/ukm_service.h (right): https://codereview.chromium.org/2740633002/diff/220001/components/ukm/ukm_service.h#newcode167 components/ukm/ukm_service.h:167: int32_t session_id_; Oops, this came with the rebase.
3 years, 9 months ago (2017-03-09 20:53:44 UTC) #46
sebsg
Added a bunch of tests, PTAL?
3 years, 9 months ago (2017-03-10 15:19:32 UTC) #50
Mathieu
lgtm with nit https://codereview.chromium.org/2740633002/diff/260001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2740633002/diff/260001/components/autofill/core/browser/autofill_manager.cc#newcode1042 components/autofill/core/browser/autofill_manager.cc:1042: AutofillMetrics::LogCardUploadDecisionMetricUkm( we are not using the ...
3 years, 9 months ago (2017-03-10 15:30:22 UTC) #56
sebsg
Hi Rob, PTAL? https://codereview.chromium.org/2740633002/diff/260001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2740633002/diff/260001/components/autofill/core/browser/autofill_manager.cc#newcode1042 components/autofill/core/browser/autofill_manager.cc:1042: AutofillMetrics::LogCardUploadDecisionMetricUkm( On 2017/03/10 15:30:22, Mathieu Perreault ...
3 years, 9 months ago (2017-03-10 16:45:29 UTC) #70
rkaplow
https://codereview.chromium.org/2740633002/diff/320001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2740633002/diff/320001/components/autofill/core/browser/autofill_manager.cc#newcode1042 components/autofill/core/browser/autofill_manager.cc:1042: AutofillMetrics::LogCardUploadDecisionMetricUkm( small optional comment - since the structure of ...
3 years, 9 months ago (2017-03-10 19:00:27 UTC) #73
sebsg
Thanks, another look? https://codereview.chromium.org/2740633002/diff/320001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2740633002/diff/320001/components/autofill/core/browser/autofill_manager.cc#newcode1042 components/autofill/core/browser/autofill_manager.cc:1042: AutofillMetrics::LogCardUploadDecisionMetricUkm( On 2017/03/10 19:00:27, rkaplow (slow) ...
3 years, 9 months ago (2017-03-10 19:25:33 UTC) #79
sebsg
jdonnelly@, could you please take a look at autofill_client_ios? boliu@, could you please take a ...
3 years, 9 months ago (2017-03-10 19:30:46 UTC) #82
Justin Donnelly
autofill_client_ios lgtm
3 years, 9 months ago (2017-03-10 19:34:01 UTC) #83
boliu
dumb question.. what is UKM and why doesn't webview need it too?
3 years, 9 months ago (2017-03-10 19:38:01 UTC) #84
boliu
rs lgtm after chat
3 years, 9 months ago (2017-03-10 19:59:02 UTC) #85
rkaplow
lgtm https://codereview.chromium.org/2740633002/diff/320001/components/autofill/core/browser/autofill_metrics.cc File components/autofill/core/browser/autofill_metrics.cc (right): https://codereview.chromium.org/2740633002/diff/320001/components/autofill/core/browser/autofill_metrics.cc#newcode707 components/autofill/core/browser/autofill_metrics.cc:707: std::map<std::string, int> metrics = { On 2017/03/10 19:25:33, ...
3 years, 9 months ago (2017-03-10 20:26:16 UTC) #86
sebsg
Thanks! Sending to CQ https://codereview.chromium.org/2740633002/diff/320001/components/autofill/core/browser/autofill_metrics.cc File components/autofill/core/browser/autofill_metrics.cc (right): https://codereview.chromium.org/2740633002/diff/320001/components/autofill/core/browser/autofill_metrics.cc#newcode707 components/autofill/core/browser/autofill_metrics.cc:707: std::map<std::string, int> metrics = { ...
3 years, 9 months ago (2017-03-10 20:38:07 UTC) #87
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/2740633002/400001
3 years, 9 months ago (2017-03-10 20:39:05 UTC) #90
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 21:42:39 UTC) #93
Message was sent while issue was closed.
Committed patchset #9 (id:400001) as
https://chromium.googlesource.com/chromium/src/+/adcdf2d7c58a495e0f917a50148c...

Powered by Google App Engine
This is Rietveld 408576698