Hi Anthony, Tried various approaches for this, and this one works. There is a slight ...
3 years, 8 months ago
(2017-04-11 19:45:57 UTC)
#3
Hi Anthony,
Tried various approaches for this, and this one works. There is a slight "order
of operations" issue in general which makes it that the list views can't really
be PaymentRequestState observers, because as soon as you call say,
SetSelectedInstrument, the view would relayout, and you still haven't touched
the PaymentRequestItemList at that point. Coupled with the fact that
PaymentRequestItemList is stateful (doesn't rely on a relayout but rather keeps
|selected_item_|), it meant that I preferred calling list->SelectItem(item) and
UpdateContentView() manually, once I knew that my PaymentRequestState model was
A-OK.
Anyway if it's not too ugly for you I suggest that we go ahead with an approach
like this. Let me know what you think.
Mathieu
The CQ bit was checked by mathp@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-12 17:10:06 UTC)
#4
Description was changed from ========== [Payments] When adding/editing a credit card, propagate effect to list ...
3 years, 8 months ago
(2017-04-12 17:11:35 UTC)
#6
Description was changed from
==========
[Payments] When adding/editing a credit card, propagate effect to list
Draft: description to follow.
BUG=709571
==========
to
==========
[Payments] After adding/editing a credit card, instrument is selected.
After being done editing an incomplete card, or adding a new one, the
instrument is selected for payment.
Still TODO is to go back to the payment sheet after the editor has
returned.
BUG=709571
TEST=browser_tests
==========
Mathieu
Hi Anthony, PTAL
3 years, 8 months ago
(2017-04-12 17:11:50 UTC)
#7
Hi Anthony, PTAL
Mathieu
The CQ bit was checked by mathp@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-12 19:05:09 UTC)
#8
CQ is committing da patch. Bot data: {"patchset_id": 110001, "attempt_start_ts": 1492024030874560, "parent_rev": "ac2e0aeea11a2641dfca4d1b192bd1641b5cd5d3", "commit_rev": "24ce4cde5a1d9f21ff63d0560f904dbd2dc46d81"}
3 years, 8 months ago
(2017-04-12 20:56:48 UTC)
#14
CQ is committing da patch.
Bot data: {"patchset_id": 110001, "attempt_start_ts": 1492024030874560,
"parent_rev": "ac2e0aeea11a2641dfca4d1b192bd1641b5cd5d3", "commit_rev":
"24ce4cde5a1d9f21ff63d0560f904dbd2dc46d81"}
commit-bot: I haz the power
Description was changed from ========== [Payments] After adding/editing a credit card, instrument is selected. After ...
3 years, 8 months ago
(2017-04-12 20:57:51 UTC)
#15
Message was sent while issue was closed.
Description was changed from
==========
[Payments] After adding/editing a credit card, instrument is selected.
After being done editing an incomplete card, or adding a new one, the
instrument is selected for payment.
Still TODO is to go back to the payment sheet after the editor has
returned.
BUG=709571
TEST=browser_tests
==========
to
==========
[Payments] After adding/editing a credit card, instrument is selected.
After being done editing an incomplete card, or adding a new one, the
instrument is selected for payment.
Still TODO is to go back to the payment sheet after the editor has
returned.
BUG=709571
TEST=browser_tests
Review-Url: https://codereview.chromium.org/2807363003
Cr-Commit-Position: refs/heads/master@{#464148}
Committed:
https://chromium.googlesource.com/chromium/src/+/24ce4cde5a1d9f21ff63d0560f90...
==========
commit-bot: I haz the power
Committed patchset #6 (id:110001) as https://chromium.googlesource.com/chromium/src/+/24ce4cde5a1d9f21ff63d0560f904dbd2dc46d81
3 years, 8 months ago
(2017-04-12 20:57:52 UTC)
#16
Issue 2807363003: [Payments] After adding/editing a credit card, instrument is selected.
(Closed)
Created 3 years, 8 months ago by Mathieu
Modified 3 years, 8 months ago
Reviewers: anthonyvd
Base URL:
Comments: 0