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

Issue 2579513002: [WebPayments] Factor out sheet-specific logic in Controllers. (Closed)

Created:
4 years ago by anthonyvd
Modified:
4 years ago
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebPayments] Factor out sheet-specific logic in Controllers. This CL adds a mechanism to isolate sheet-specific code previously in PaymentRequestDialog to Controller classes. This will allow for clearer view creation and event handling as the different sheets in the dialog are implemented. BUG=667872 Committed: https://crrev.com/9380084b03aa5c232c96c32ff66e5b4317a36d54 Cr-Commit-Position: refs/heads/master@{#439141}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments. #

Total comments: 7

Patch Set 3 : Address comments. #

Total comments: 86

Patch Set 4 : Address comments. #

Total comments: 20

Patch Set 5 : Addressed Rouslan's comments. #

Patch Set 6 : Add missing include and semicolon. #

Messages

Total messages: 36 (21 generated)
anthonyvd
Hi Scott, This CL attempts to better separate the event handling and view creation for ...
4 years ago (2016-12-14 23:14:40 UTC) #4
sky
https://codereview.chromium.org/2579513002/diff/40001/chrome/browser/ui/views/payments/order_summary_view_controller.h File chrome/browser/ui/views/payments/order_summary_view_controller.h (right): https://codereview.chromium.org/2579513002/diff/40001/chrome/browser/ui/views/payments/order_summary_view_controller.h#newcode28 chrome/browser/ui/views/payments/order_summary_view_controller.h:28: OrderSummaryViewController* controller); As this function takes an OrderSummaryViewController why ...
4 years ago (2016-12-14 23:44:25 UTC) #7
anthonyvd
https://codereview.chromium.org/2579513002/diff/40001/chrome/browser/ui/views/payments/order_summary_view_controller.h File chrome/browser/ui/views/payments/order_summary_view_controller.h (right): https://codereview.chromium.org/2579513002/diff/40001/chrome/browser/ui/views/payments/order_summary_view_controller.h#newcode28 chrome/browser/ui/views/payments/order_summary_view_controller.h:28: OrderSummaryViewController* controller); On 2016/12/14 at 23:44:25, sky wrote: > ...
4 years ago (2016-12-15 15:02:58 UTC) #10
sky
LGTM https://codereview.chromium.org/2579513002/diff/60001/chrome/browser/ui/views/payments/order_summary_view_controller.h File chrome/browser/ui/views/payments/order_summary_view_controller.h (right): https://codereview.chromium.org/2579513002/diff/60001/chrome/browser/ui/views/payments/order_summary_view_controller.h#newcode25 chrome/browser/ui/views/payments/order_summary_view_controller.h:25: ~OrderSummaryViewController() override {} Don't inline the destructor (I'm ...
4 years ago (2016-12-15 16:49:44 UTC) #11
anthonyvd
Thanks, comments addressed! +Rouslan and Tommy, can you guys please take a look? Thanks! https://codereview.chromium.org/2579513002/diff/60001/chrome/browser/ui/views/payments/order_summary_view_controller.h ...
4 years ago (2016-12-15 17:37:41 UTC) #13
please use gerrit instead
Overall a great patch. Don't despair about the long list of comments from me. These ...
4 years ago (2016-12-15 19:11:16 UTC) #14
anthonyvd
No despair here; I like thorough reviews :-) Comments addressed, thanks a ton! https://codereview.chromium.org/2579513002/diff/80001/chrome/browser/ui/views/payments/order_summary_view_controller.cc File ...
4 years ago (2016-12-15 19:55:07 UTC) #15
please use gerrit instead
Meta comment: If you're passing ownership of data, then use std::unique_ptr<>. Memory management comments are ...
4 years ago (2016-12-15 20:29:33 UTC) #16
anthonyvd
Thanks again, addressed all comments! Meta discussion regarding ownership comments below. The style guide is ...
4 years ago (2016-12-15 20:58:09 UTC) #17
please use gerrit instead
LGTM The updated style guide makes sense. Thank you for pointing me to it. I ...
4 years ago (2016-12-15 21:13:52 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/2579513002/120001
4 years ago (2016-12-16 15:49:26 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/253097)
4 years ago (2016-12-16 16:02:24 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/2579513002/140001
4 years ago (2016-12-16 17:28:05 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years ago (2016-12-16 17:49:27 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-16 17:53:04 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9380084b03aa5c232c96c32ff66e5b4317a36d54
Cr-Commit-Position: refs/heads/master@{#439141}

Powered by Google App Engine
This is Rietveld 408576698