Index: chrome/browser/ui/views/payments/payment_request_views_util.cc |
diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.cc b/chrome/browser/ui/views/payments/payment_request_views_util.cc |
index 375ec5fe136e76eef67691390b2bd4e16e37d99c..01e73ffc4f6a46aeb4f33555e444c5241ce7736c 100644 |
--- a/chrome/browser/ui/views/payments/payment_request_views_util.cc |
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.cc |
@@ -38,6 +38,7 @@ |
#include "ui/views/controls/styled_label.h" |
#include "ui/views/layout/box_layout.h" |
#include "ui/views/layout/grid_layout.h" |
+#include "ui/views/layout/layout_provider.h" |
#include "ui/views/painter.h" |
#include "ui/views/view.h" |
@@ -127,6 +128,13 @@ class PaymentRequestRowBorderPainter : public views::Painter { |
} // namespace |
+int GetActualDialogWidth() { |
+ constexpr int kDialogMinWidth = 512; |
+ static int actual_width = |
+ views::LayoutProvider::Get()->GetSnappedDialogWidth(kDialogMinWidth); |
+ return actual_width; |
+} |
+ |
std::unique_ptr<views::View> CreateSheetHeaderView( |
bool show_back_arrow, |
const base::string16& title, |