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

Issue 2847503002: [WebPayments] Show labels on incomplete profiles (Closed)

Created:
3 years, 8 months ago by tmartino
Modified:
3 years, 7 months ago
Reviewers:
Mathieu, Moe
CC:
browser-components-watch_chromium.org, chromium-reviews, darin-cc_chromium.org, estade+watch_chromium.org, gogerald+paymentswatch_chromium.org, jam, MAD, 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, tfarina, vabr+watchlistautofill_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebPayments] Show labels on incomplete profiles Adds labels describing missing information (e.g., "Add Email Address") to shipping + contact info views. Adds validation for shipping addresses. Adds cacheing to PaymentsProfileComparator, and adds an instance to PaymentRequestState so that cached values can be used throughout the request. BUG=711358, 709454 , TBR=mahmadi@chromium.org Review-Url: https://codereview.chromium.org/2847503002 Cr-Commit-Position: refs/heads/master@{#468242} Committed: https://chromium.googlesource.com/chromium/src/+/01c3eb8fd187b96cf17164ebcf15c69da1fa660e

Patch Set 1 #

Patch Set 2 : add tests #

Patch Set 3 : fix browsertest build #

Patch Set 4 : trying to fix ios #

Patch Set 5 : ios namespace #

Total comments: 20

Patch Set 6 : ios namespace #

Patch Set 7 : mathp feedback #

Patch Set 8 : add missing changes #

Total comments: 5

Patch Set 9 : format #

Patch Set 10 : includes #

Patch Set 11 : test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+651 lines, -504 lines) Patch
M chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/order_summary_view_controller_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.cc View 1 2 3 4 5 6 7 8 9 8 chunks +33 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.cc View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_option_view_controller_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_profile_comparator.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/payments/content/payment_request_state.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
M components/payments/content/payment_request_state.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -13 lines 0 comments Download
M components/payments/core/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M components/payments/core/payment_request_data_util.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M components/payments/core/payment_request_data_util.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
A components/payments/core/payments_profile_comparator.h View 1 2 3 4 5 6 7 8 1 chunk +112 lines, -0 lines 0 comments Download
A components/payments/core/payments_profile_comparator.cc View 1 2 3 4 5 6 7 8 1 chunk +251 lines, -0 lines 0 comments Download
A + components/payments/core/payments_profile_comparator_unittest.cc View 1 2 3 4 5 6 7 8 12 chunks +156 lines, -20 lines 0 comments Download
M components/payments/core/profile_util.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -69 lines 0 comments Download
M components/payments/core/profile_util.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -123 lines 0 comments Download
M components/payments/core/profile_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -231 lines 0 comments Download
M ios/chrome/browser/payments/payment_request.mm View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 65 (54 generated)
tmartino
Hey, PTAL. Note that I'm planning to rename profile_util.h to payments_profile_comparator.h, but I wanted to ...
3 years, 7 months ago (2017-04-27 15:36:02 UTC) #21
Mathieu
3 years, 7 months ago (2017-04-27 17:32:58 UTC) #26
MAD
Shouldn't we make PaymentRequestState a PersonalDataManagerObserver so that it can update its cache when changes ...
3 years, 7 months ago (2017-04-27 18:30:39 UTC) #31
Mathieu
I like it a LOT! I have a sense that some methods in profile_util are ...
3 years, 7 months ago (2017-04-27 18:34:01 UTC) #32
Mathieu
https://codereview.chromium.org/2847503002/diff/80001/components/autofill/core/browser/autofill_profile_comparator.h File components/autofill/core/browser/autofill_profile_comparator.h (right): https://codereview.chromium.org/2847503002/diff/80001/components/autofill/core/browser/autofill_profile_comparator.h#newcode218 components/autofill/core/browser/autofill_profile_comparator.h:218: const std::string app_locale_; On 2017/04/27 18:34:01, Mathieu wrote: > ...
3 years, 7 months ago (2017-04-27 18:34:31 UTC) #33
Mathieu
On 2017/04/27 18:34:31, Mathieu wrote: > https://codereview.chromium.org/2847503002/diff/80001/components/autofill/core/browser/autofill_profile_comparator.h > File components/autofill/core/browser/autofill_profile_comparator.h (right): > > https://codereview.chromium.org/2847503002/diff/80001/components/autofill/core/browser/autofill_profile_comparator.h#newcode218 > ...
3 years, 7 months ago (2017-04-27 18:35:54 UTC) #34
tmartino
Thanks! PTAL https://codereview.chromium.org/2847503002/diff/80001/chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h File chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h (right): https://codereview.chromium.org/2847503002/diff/80001/chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h#newcode48 chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h:48: // Used in "three line labels" to ...
3 years, 7 months ago (2017-04-28 17:10:06 UTC) #37
Mathieu
This lgtm with the file rename and the missing tests for strings, and as much ...
3 years, 7 months ago (2017-04-28 18:36:01 UTC) #44
tmartino
https://codereview.chromium.org/2847503002/diff/140001/components/payments/core/profile_util.h File components/payments/core/profile_util.h (right): https://codereview.chromium.org/2847503002/diff/140001/components/payments/core/profile_util.h#newcode48 components/payments/core/profile_util.h:48: const autofill::AutofillProfile* profile) const; On 2017/04/28 at 18:36:00, Mathieu ...
3 years, 7 months ago (2017-04-29 13:37:44 UTC) #59
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/2847503002/200001
3 years, 7 months ago (2017-04-29 13:38:04 UTC) #62
commit-bot: I haz the power
3 years, 7 months ago (2017-04-29 15:18:51 UTC) #65
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/01c3eb8fd187b96cf17164ebcf15...

Powered by Google App Engine
This is Rietveld 408576698