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

Issue 2701923003: [Payment Request] Error message screen (Closed)

Created:
3 years, 10 months ago by Moe
Modified:
3 years, 9 months ago
CC:
chromium-reviews, pkl (ping after 24h if needed), Eugene But (OOO till 7-30), gogerald+paymentswatch_chromium.org, rouslan+payments_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, srahim+watch_chromium.org, sebsg+paymentswatch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payment Request] Error message screen Displays an error message if: 1. PaymentResponse.complete() gets called with 'fail'. 2. The promise returned by PaymentRequestUpdateEvent.updateWith() doesn't get settled in a reasonable amount of time. Payment Request will cancel once the user dismisses the error screen. TBR=rouslan@,sdefresne@, BUG=602666 Review-Url: https://codereview.chromium.org/2701923003 Cr-Commit-Position: refs/heads/master@{#453208} Committed: https://chromium.googlesource.com/chromium/src/+/fac86e79522c21f6683ab4e973443733d3dfbacd

Patch Set 1 #

Total comments: 15

Patch Set 2 : Addressed comments #

Total comments: 3

Patch Set 3 : Addressed comments #

Total comments: 25

Patch Set 4 : Addressed comments #

Patch Set 5 : ARCified #

Total comments: 8

Patch Set 6 : Addressed comments #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+733 lines, -123 lines) Patch
M components/components_strings.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M components/payments_strings.grdp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/payments/BUILD.gn View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M ios/chrome/browser/payments/cells/page_info_item.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/payments/cells/page_info_item.mm View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/payment_items_display_coordinator_unittest.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/payments/payment_items_display_view_controller.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ios/chrome/browser/payments/payment_items_display_view_controller.mm View 1 2 3 4 9 chunks +11 lines, -15 lines 0 comments Download
A ios/chrome/browser/payments/payment_items_display_view_controller_actions.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M ios/chrome/browser/payments/payment_method_selection_coordinator.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/payment_method_selection_coordinator.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/payments/payment_method_selection_view_controller.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/payment_method_selection_view_controller.mm View 1 2 3 4 6 chunks +7 lines, -7 lines 0 comments Download
A ios/chrome/browser/payments/payment_method_selection_view_controller_actions.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_coordinator.h View 1 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_coordinator.mm View 1 2 3 4 5 6 6 chunks +27 lines, -5 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_coordinator_unittest.mm View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
A ios/chrome/browser/payments/payment_request_error_coordinator.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A ios/chrome/browser/payments/payment_request_error_coordinator.mm View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm View 1 2 3 4 5 6 1 chunk +74 lines, -0 lines 0 comments Download
A ios/chrome/browser/payments/payment_request_error_view_controller.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A ios/chrome/browser/payments/payment_request_error_view_controller.mm View 1 2 3 4 1 chunk +140 lines, -0 lines 0 comments Download
A ios/chrome/browser/payments/payment_request_error_view_controller_actions.h View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A ios/chrome/browser/payments/payment_request_error_view_controller_unittest.mm View 1 chunk +42 lines, -0 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_manager.mm View 1 2 3 4 5 13 chunks +78 lines, -12 lines 0 comments Download
M ios/chrome/browser/payments/payment_request_view_controller.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/payments/payment_request_view_controller.mm View 1 2 3 4 5 6 7 chunks +8 lines, -12 lines 0 comments Download
A ios/chrome/browser/payments/payment_request_view_controller_actions.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M ios/chrome/browser/payments/resources/payment_request_manager.js View 1 2 3 4 5 6 13 chunks +47 lines, -17 lines 0 comments Download
M ios/chrome/browser/payments/shipping_address_selection_coordinator.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/shipping_address_selection_view_controller.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/shipping_address_selection_view_controller.mm View 1 2 3 4 5 6 7 chunks +8 lines, -7 lines 0 comments Download
A ios/chrome/browser/payments/shipping_address_selection_view_controller_actions.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M ios/chrome/browser/payments/shipping_option_selection_coordinator.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/shipping_option_selection_view_controller.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/payments/shipping_option_selection_view_controller.mm View 1 2 3 4 5 6 7 chunks +8 lines, -18 lines 0 comments Download
A ios/chrome/browser/payments/shipping_option_selection_view_controller_actions.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/web_view_js_utils.mm View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (15 generated)
Moe
Hi reviewers, Please review this CL. lpromero@ ios/c/b/payments/ eugenebut@ ios/web/ TBR rouslan@, sdefrense@ for component ...
3 years, 10 months ago (2017-02-17 22:00:26 UTC) #5
Eugene But (OOO till 7-30)
ios/web lgtm
3 years, 10 months ago (2017-02-17 22:52:34 UTC) #6
lpromero
https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_coordinator.mm File ios/chrome/browser/payments/payment_request_coordinator.mm (right): https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_coordinator.mm#newcode281 ios/chrome/browser/payments/payment_request_coordinator.mm:281: _errorViewController.reset([[PaymentRequestErrorViewController alloc] init]); This should be created and presented ...
3 years, 10 months ago (2017-02-20 17:14:07 UTC) #9
Moe
https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_coordinator.mm File ios/chrome/browser/payments/payment_request_coordinator.mm (right): https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_coordinator.mm#newcode281 ios/chrome/browser/payments/payment_request_coordinator.mm:281: _errorViewController.reset([[PaymentRequestErrorViewController alloc] init]); On 2017/02/20 17:14:06, lpromero wrote: > ...
3 years, 10 months ago (2017-02-21 05:07:06 UTC) #11
lpromero
https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_coordinator.mm File ios/chrome/browser/payments/payment_request_coordinator.mm (right): https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_coordinator.mm#newcode281 ios/chrome/browser/payments/payment_request_coordinator.mm:281: _errorViewController.reset([[PaymentRequestErrorViewController alloc] init]); On 2017/02/21 05:07:06, moe wrote: > ...
3 years, 10 months ago (2017-02-21 12:26:22 UTC) #12
Moe
https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_error_view_controller.mm File ios/chrome/browser/payments/payment_request_error_view_controller.mm (right): https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_error_view_controller.mm#newcode62 ios/chrome/browser/payments/payment_request_error_view_controller.mm:62: action:@selector(onOk)]); On 2017/02/21 12:26:22, lpromero wrote: > On 2017/02/21 ...
3 years, 10 months ago (2017-02-21 15:37:41 UTC) #13
please use gerrit instead
LGTM % comments https://codereview.chromium.org/2701923003/diff/60001/components/components_strings.grd File components/components_strings.grd (right): https://codereview.chromium.org/2701923003/diff/60001/components/components_strings.grd#newcode283 components/components_strings.grd:283: Ok Can you use IDS_OK instead? ...
3 years, 10 months ago (2017-02-21 16:37:08 UTC) #14
lpromero
On 2017/02/21 15:37:41, moe wrote: > https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_error_view_controller.mm > File ios/chrome/browser/payments/payment_request_error_view_controller.mm > (right): > > https://codereview.chromium.org/2701923003/diff/1/ios/chrome/browser/payments/payment_request_error_view_controller.mm#newcode62 ...
3 years, 10 months ago (2017-02-21 16:38:32 UTC) #15
lpromero
LGTM with nits/ https://codereview.chromium.org/2701923003/diff/60001/ios/chrome/browser/payments/payment_request_coordinator.mm File ios/chrome/browser/payments/payment_request_coordinator.mm (right): https://codereview.chromium.org/2701923003/diff/60001/ios/chrome/browser/payments/payment_request_coordinator.mm#newcode347 ios/chrome/browser/payments/payment_request_coordinator.mm:347: void (^callback)() = coordinator.callback; Nit: Use ...
3 years, 10 months ago (2017-02-21 16:51:08 UTC) #16
Moe
Thank you all. https://codereview.chromium.org/2701923003/diff/60001/components/components_strings.grd File components/components_strings.grd (right): https://codereview.chromium.org/2701923003/diff/60001/components/components_strings.grd#newcode283 components/components_strings.grd:283: Ok On 2017/02/21 16:37:08, rouslan wrote: ...
3 years, 10 months ago (2017-02-21 22:56:15 UTC) #17
lpromero
https://codereview.chromium.org/2701923003/diff/60001/ios/chrome/browser/payments/payment_request_coordinator.mm File ios/chrome/browser/payments/payment_request_coordinator.mm (right): https://codereview.chromium.org/2701923003/diff/60001/ios/chrome/browser/payments/payment_request_coordinator.mm#newcode347 ios/chrome/browser/payments/payment_request_coordinator.mm:347: void (^callback)() = coordinator.callback; On 2017/02/21 22:56:14, moe wrote: ...
3 years, 10 months ago (2017-02-22 13:31:44 UTC) #18
Moe
On 2017/02/22 13:31:44, lpromero wrote: > https://codereview.chromium.org/2701923003/diff/60001/ios/chrome/browser/payments/payment_request_coordinator.mm > File ios/chrome/browser/payments/payment_request_coordinator.mm (right): > > https://codereview.chromium.org/2701923003/diff/60001/ios/chrome/browser/payments/payment_request_coordinator.mm#newcode347 > ...
3 years, 10 months ago (2017-02-22 13:56:13 UTC) #19
lpromero
On 2017/02/22 13:56:13, moe wrote: > On 2017/02/22 13:31:44, lpromero wrote: > > > https://codereview.chromium.org/2701923003/diff/60001/ios/chrome/browser/payments/payment_request_coordinator.mm ...
3 years, 10 months ago (2017-02-22 13:58:58 UTC) #20
lpromero
On 2017/02/22 13:56:13, moe wrote: > On 2017/02/22 13:31:44, lpromero wrote: > > > https://codereview.chromium.org/2701923003/diff/60001/ios/chrome/browser/payments/payment_request_coordinator.mm ...
3 years, 10 months ago (2017-02-22 13:59:00 UTC) #21
Moe
On 2017/02/22 13:59:00, lpromero wrote: > On 2017/02/22 13:56:13, moe wrote: > > On 2017/02/22 ...
3 years, 10 months ago (2017-02-22 18:21:37 UTC) #22
lpromero
lgtm. Thanks for having created the other actions protocols! https://codereview.chromium.org/2701923003/diff/100001/ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm File ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm (right): https://codereview.chromium.org/2701923003/diff/100001/ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm#newcode22 ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm:22: ...
3 years, 10 months ago (2017-02-23 09:17:41 UTC) #23
Moe
Thank you Louis! https://codereview.chromium.org/2701923003/diff/100001/ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm File ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm (right): https://codereview.chromium.org/2701923003/diff/100001/ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm#newcode22 ios/chrome/browser/payments/payment_request_error_coordinator_unittest.mm:22: [[[UIViewController alloc] init] autorelease]; On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 14:44:01 UTC) #24
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/2701923003/140001
3 years, 9 months ago (2017-02-27 13:17:25 UTC) #31
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 14:34:52 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/fac86e79522c21f6683ab4e97344...

Powered by Google App Engine
This is Rietveld 408576698