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

Issue 2775553004: [WebPayments] Implementing Profile filter and dedupe (Closed)

Created:
3 years, 9 months ago by tmartino
Modified:
3 years, 8 months ago
CC:
browser-components-watch_chromium.org, chromium-reviews, darin-cc_chromium.org, estade+watch_chromium.org, gogerald+paymentswatch_chromium.org, jam, mahmadi+paymentswatch_chromium.org, mathp+autofillwatch_chromium.org, rogerm+autofillwatch_chromium.org, rouslan+autofill_chromium.org, rouslan+payments_chromium.org, sebsg+autofillwatch_chromium.org, sebsg+paymentswatch_chromium.org, vabr+watchlistautofill_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebPayments] Implementing Profile filter and dedupe logic in components Still to-do: - Backport this logic to Android in a forthcoming CL - Consider filtering shipping addresses BUG=706117 Review-Url: https://codereview.chromium.org/2775553004 Cr-Commit-Position: refs/heads/master@{#462603} Committed: https://chromium.googlesource.com/chromium/src/+/a6eb22f51aa4a79ecfd8e61527280658aef1e089

Patch Set 1 #

Patch Set 2 : Adding omitted files #

Total comments: 20

Patch Set 3 : updating to use options #

Patch Set 4 : rebase #

Patch Set 5 : fix tests #

Patch Set 6 : include algo #

Total comments: 9

Patch Set 7 : now with tests #

Patch Set 8 : now with tests that hopefully pass #

Total comments: 6

Patch Set 9 : mathp comments #

Patch Set 10 : rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -29 lines) Patch
M components/autofill/core/browser/form_group.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_group.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A components/payments/README View 1 1 chunk +35 lines, -0 lines 0 comments Download
M components/payments/content/payment_request_state.cc View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -29 lines 0 comments Download
M components/payments/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
A components/payments/core/profile_util.h View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
A components/payments/core/profile_util.cc View 1 2 3 4 5 6 7 8 1 chunk +123 lines, -0 lines 0 comments Download
A components/payments/core/profile_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +231 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (50 generated)
tmartino
+rogerm for a first pass. In particular, I'm looking for some feedback on how I've ...
3 years, 9 months ago (2017-03-23 22:28:41 UTC) #3
tmartino
+sebsg, who is familiar with the Android implementation that will eventually be replaced by this ...
3 years, 9 months ago (2017-03-23 22:29:43 UTC) #5
Mathieu
https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.h File components/payments/content/profile_util.h (right): https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.h#newcode14 components/payments/content/profile_util.h:14: // TODO(tmartino): Remove dependency on PaymentRequestSpec and move to ...
3 years, 9 months ago (2017-03-24 16:16:02 UTC) #7
tmartino
https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.h File components/payments/content/profile_util.h (right): https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.h#newcode14 components/payments/content/profile_util.h:14: // TODO(tmartino): Remove dependency on PaymentRequestSpec and move to ...
3 years, 9 months ago (2017-03-24 16:28:52 UTC) #10
Mathieu
https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.h File components/payments/content/profile_util.h (right): https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.h#newcode14 components/payments/content/profile_util.h:14: // TODO(tmartino): Remove dependency on PaymentRequestSpec and move to ...
3 years, 9 months ago (2017-03-24 16:37:27 UTC) #12
Roger McFarlane (Chromium)
https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.cc File components/payments/content/profile_util.cc (right): https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.cc#newcode18 components/payments/content/profile_util.cc:18: std::vector<autofill::AutofillProfile*> processed = profiles; Note, but don't actually apply, ...
3 years, 9 months ago (2017-03-24 18:23:16 UTC) #13
sebsg
Nice work!!! Some comments inline. Also I think the tests for your CL would be ...
3 years, 9 months ago (2017-03-27 17:13:28 UTC) #14
tmartino
https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.cc File components/payments/content/profile_util.cc (right): https://codereview.chromium.org/2775553004/diff/20001/components/payments/content/profile_util.cc#newcode46 components/payments/content/profile_util.cc:46: processed.erase(it); On 2017/03/27 at 17:13:28, sebsg wrote: > On ...
3 years, 8 months ago (2017-04-03 16:42:55 UTC) #35
Mathieu
Hey this is great! This would really benefit from unit tests though, wdyt? https://codereview.chromium.org/2775553004/diff/100001/components/payments/core/profile_util.cc File ...
3 years, 8 months ago (2017-04-03 19:11:53 UTC) #38
tmartino
Added tests! PTAL. https://codereview.chromium.org/2775553004/diff/100001/components/payments/core/profile_util.cc File components/payments/core/profile_util.cc (right): https://codereview.chromium.org/2775553004/diff/100001/components/payments/core/profile_util.cc#newcode96 components/payments/core/profile_util.cc:96: autofill::AutofillProfile* profile) { On 2017/04/03 at ...
3 years, 8 months ago (2017-04-04 21:00:22 UTC) #45
sebsg
Small comments :) nice tests! https://codereview.chromium.org/2775553004/diff/140001/components/payments/core/profile_util.h File components/payments/core/profile_util.h (right): https://codereview.chromium.org/2775553004/diff/140001/components/payments/core/profile_util.h#newcode53 components/payments/core/profile_util.h:53: // Returns true every ...
3 years, 8 months ago (2017-04-04 22:17:17 UTC) #48
Mathieu
https://codereview.chromium.org/2775553004/diff/100001/components/payments/core/profile_util.cc File components/payments/core/profile_util.cc (right): https://codereview.chromium.org/2775553004/diff/100001/components/payments/core/profile_util.cc#newcode96 components/payments/core/profile_util.cc:96: autofill::AutofillProfile* profile) { On 2017/04/04 21:00:22, tmartino wrote: > ...
3 years, 8 months ago (2017-04-05 13:43:11 UTC) #49
tmartino
re: mathp's comments on constref, I'll just reply in one place. I went back and ...
3 years, 8 months ago (2017-04-05 21:30:29 UTC) #50
Mathieu
lgtm, very cool tests!
3 years, 8 months ago (2017-04-05 23:25:28 UTC) #55
sebsg
LGTM, Ship it! :)
3 years, 8 months ago (2017-04-06 12:50:30 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/2775553004/180001
3 years, 8 months ago (2017-04-06 19:51:34 UTC) #63
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 20:22:15 UTC) #67
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/a6eb22f51aa4a79ecfd8e6152728...

Powered by Google App Engine
This is Rietveld 408576698