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

Issue 2561373002: [Payment Request] Keep selection for edited item when canceling 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] Keep selection for edited item when canceling editors Previously, the various editors would return |null| to the caller (PaymentRequestImpl) in the case of a cancel. We are now returning the original item that was passed in for edit. BUG=672996 TEST=PaymentRequest*Test* Committed: https://crrev.com/7f8a29ea00d9ab273a33a42c77d4afe13a8707ac Cr-Commit-Position: refs/heads/master@{#437723}

Patch Set 1 : Initial #

Total comments: 2

Patch Set 2 : now handling the + ADD ITEM case #

Total comments: 2

Patch Set 3 : move id to xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -29 lines) Patch
M chrome/android/java/res/layout/payment_option_edit_icon.xml View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/java/res/values/ids.xml View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/CardEditor.java View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java View 1 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 3 chunks +23 lines, -17 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorView.java View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java View 1 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppAndCardsTest.java View 1 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShippingAddressTest.java View 1 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java View 3 chunks +53 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
please use gerrit instead
https://codereview.chromium.org/2561373002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java (right): https://codereview.chromium.org/2561373002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java#newcode153 chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestContactDetailsTest.java:153: mReadyToEdit.waitForCallback(callCount); You're clicking on the close_button before the editor ...
4 years ago (2016-12-09 17:08:23 UTC) #2
Mathieu
Hi Rouslan, PTAL Payment Request stuff Hi Ian, PTAL the change in ids.xml Thanks!
4 years ago (2016-12-09 20:35:13 UTC) #7
please use gerrit instead
1) Please file a bug. 2) Please attach a video of the fix to the ...
4 years ago (2016-12-09 20:58:42 UTC) #11
Mathieu
Done PTAL. https://codereview.chromium.org/2561373002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java (right): https://codereview.chromium.org/2561373002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java#newcode139 chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java:139: // If the user clicks [Cancel], send ...
4 years ago (2016-12-09 21:38:31 UTC) #15
please use gerrit instead
lgtm
4 years ago (2016-12-09 21:45:59 UTC) #17
Ian Wen
https://codereview.chromium.org/2561373002/diff/60001/chrome/android/java/res/values/ids.xml File chrome/android/java/res/values/ids.xml (right): https://codereview.chromium.org/2561373002/diff/60001/chrome/android/java/res/values/ids.xml#newcode70 chrome/android/java/res/values/ids.xml:70: <item type="id" name="payments_open_editor_pencil_button" /> Instead of giving it an ...
4 years ago (2016-12-09 22:17:54 UTC) #18
Ian Wen
lgtm after the previous comment is addressed.
4 years ago (2016-12-09 22:31:24 UTC) #19
Mathieu
Thanks! https://codereview.chromium.org/2561373002/diff/60001/chrome/android/java/res/values/ids.xml File chrome/android/java/res/values/ids.xml (right): https://codereview.chromium.org/2561373002/diff/60001/chrome/android/java/res/values/ids.xml#newcode70 chrome/android/java/res/values/ids.xml:70: <item type="id" name="payments_open_editor_pencil_button" /> On 2016/12/09 22:17:53, Ian ...
4 years ago (2016-12-09 22:57:10 UTC) #21
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/2561373002/100001
4 years ago (2016-12-09 23:01:33 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-12-10 01:05:28 UTC) #26
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/2561373002/100001
4 years ago (2016-12-10 01:44:41 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years ago (2016-12-10 02:06:51 UTC) #31
commit-bot: I haz the power
4 years ago (2016-12-12 15:05:22 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7f8a29ea00d9ab273a33a42c77d4afe13a8707ac
Cr-Commit-Position: refs/heads/master@{#437723}

Powered by Google App Engine
This is Rietveld 408576698