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

Issue 2571513004: [Payment Request] Update the logic when obtaining results from editors (Closed)

Created:
4 years ago by Mathieu
Modified:
4 years ago
CC:
chromium-reviews, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, gogerald+paymentswatch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payment Request] Update the logic when obtaining results from editors There were bugs in the handling of the result coming back from an editor. We now have improved logic around: * Receiving |null| from the editor (cancelling out of an Add flow) * Receiving an incomplete result (cancelling out of an Edit for an incomplete item) * Receiving a complete item. Also updated the tests and added a few new ones. BUG=673371 TEST=PaymentRequest* (java) Committed: https://crrev.com/8824e3d6fcef98df0702cf0c0dd6c3845d067ff6 Cr-Commit-Position: refs/heads/master@{#439038}

Patch Set 1 : Initial #

Patch Set 2 : Fix pay tests #

Patch Set 3 : rebase over gogerald's change #

Total comments: 8

Patch Set 4 : addressed comments #

Patch Set 5 : fix flakiness #

Patch Set 6 : addressing test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -142 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillContact.java View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 4 3 chunks +56 lines, -21 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java View 1 2 3 4 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java View 1 4 chunks +8 lines, -16 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestDynamicShippingSingleAddressTest.java View 1 2 3 4 5 4 chunks +60 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestEmailTest.java View 1 4 chunks +8 lines, -16 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompleteContactDetailsTest.java View 1 2 3 4 4 chunks +43 lines, -15 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompleteEmailTest.java View 1 2 3 4 4 chunks +42 lines, -15 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompletePhoneTest.java View 1 2 3 4 3 chunks +55 lines, -13 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMultipleContactDetailsTest.java View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNameTest.java View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java View 1 2 3 4 chunks +13 lines, -14 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPhoneTest.java View 1 4 chunks +8 lines, -16 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillContactTest.java View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/data/android/payments/contact_details.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/android/payments/email.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/android/payments/phone.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (23 generated)
Mathieu
Hi Rouslan, PTAL. Scheduled a CQ dry run.
4 years ago (2016-12-15 16:06:59 UTC) #10
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2571513004/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2571513004/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode940 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:940: boolean isAddressComplete = editedAddress.isComplete(); Variable is ...
4 years ago (2016-12-15 18:11:21 UTC) #15
Mathieu
Thanks https://codereview.chromium.org/2571513004/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2571513004/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode940 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:940: boolean isAddressComplete = editedAddress.isComplete(); On 2016/12/15 18:11:20, rouslan ...
4 years ago (2016-12-15 22:03:06 UTC) #18
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/2571513004/160001
4 years ago (2016-12-15 22:04:22 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/200321)
4 years ago (2016-12-16 00:11:33 UTC) #23
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/2571513004/180001
4 years ago (2016-12-16 01:07:06 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years ago (2016-12-16 05:42:21 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-16 05:46:35 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8824e3d6fcef98df0702cf0c0dd6c3845d067ff6
Cr-Commit-Position: refs/heads/master@{#439038}

Powered by Google App Engine
This is Rietveld 408576698