| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Reviewer source(s):
darwi...@chromium.org is from context(googleclient/chrome/chromium_gwsq/chrome/browser/payments/reviews.gwsq)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
PaymentHandlerHeaderViews PopulatePaymentHandlerHeaderView(optional/follow-up: Have you explored making this function play nice with the views builder pattern used in [chrome/browser/ui/views/payments/payment_request_sheet_controller.h](https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/payments/payment_request_sheet_controller.cc;l=285-318;drc=0bedfcc1f8e786bfd905e2d16909da4504df025f)?
E.g. Using the builder to `.CopyAddressTo(origin_label_)` instead of needing to return it and assign it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PaymentHandlerHeaderViews PopulatePaymentHandlerHeaderView(optional/follow-up: Have you explored making this function play nice with the views builder pattern used in [chrome/browser/ui/views/payments/payment_request_sheet_controller.h](https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/payments/payment_request_sheet_controller.cc;l=285-318;drc=0bedfcc1f8e786bfd905e2d16909da4504df025f)?
E.g. Using the builder to `.CopyAddressTo(origin_label_)` instead of needing to return it and assign it.
Yes, I have tested it with both new loading view and existing web flow view.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[payments] Extract payment handler header view elements to utility
Extract PaymentHandlerProgressBar, PaymentHandlerOriginLabel, and
PaymentHandlerCloseButton class definitions, as well as the header
population and styling functions, from
payment_handler_web_flow_view_controller to
payment_handler_header_view_util.
This enables reuse of these visual elements across web flow view and
loading view in the upcoming cl. The controller now delegates header
creation to PopulatePaymentHandlerHeaderView and receives a struct
containing weak pointers to the children(origin & close button). Header
color calculation is now decoupled from WebContents(loading view doesn't
have webcontent to provide theme color).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |