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

Unified Diff: chrome/browser/ui/views/payments/payment_sheet_view_controller.cc

Issue 2853163002: [Web Payments] Implement proper focusing in Payment Request (Closed)
Patch Set: Allow ViewControllers to specify their first focused view Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
index e413ea99d97e6ed0a127fb2d019dc89afb57e809..5426d8cb40c3131e064880a3070226fcd5b25612 100644
--- a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
@@ -441,7 +441,8 @@ void PaymentSheetViewController::FillContentView(views::View* content_view) {
// The shipping address and contact info rows are optional.
layout->StartRow(0, 0);
- layout->AddView(CreatePaymentSheetSummaryRow().release());
+ std::unique_ptr<views::View> summary_row = CreatePaymentSheetSummaryRow();
Mathieu 2017/05/02 13:16:10 need this change?
anthonyvd 2017/05/02 13:43:32 Oops, not anymore.
+ layout->AddView(summary_row.release());
if (spec()->request_shipping()) {
layout->StartRow(0, 0);

Powered by Google App Engine
This is Rietveld 408576698