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

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

Issue 2700713005: [WebPayments] Updating Shipping List to use PaymentRequestRowView (Closed)
Patch Set: rebase Created 3 years, 10 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 9c7db2129b5c0841b47b034ff74b9981ea05413e..95fc1af658f0ac7d282714e962e0988c529b62eb 100644
--- a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
@@ -106,11 +106,10 @@ std::unique_ptr<views::Button> CreatePaymentSheetRow(
// The rows have extra inset compared to the header so that their right edge
// lines up with the close button's X rather than its invisible right edge.
- constexpr int kRowExtraRightInset = 8;
- layout->SetInsets(kPaymentRequestRowVerticalInsets,
- kPaymentRequestRowHorizontalInsets,
- kPaymentRequestRowVerticalInsets,
- kPaymentRequestRowHorizontalInsets + kRowExtraRightInset);
+ layout->SetInsets(
+ kPaymentRequestRowVerticalInsets, kPaymentRequestRowHorizontalInsets,
+ kPaymentRequestRowVerticalInsets,
+ kPaymentRequestRowHorizontalInsets + kPaymentRequestRowExtraRightInset);
row->SetLayoutManager(layout);
views::ColumnSet* columns = layout->AddColumnSet(0);

Powered by Google App Engine
This is Rietveld 408576698