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

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

Issue 2846053002: [Web Payments] Respect Harmony dialog width in Payment Request (Closed)
Patch Set: Change the dialog to Large 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_request_sheet_controller.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc b/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
index a6355bb0c0db107681e51ffffd5f75f4d9ce8022..19de912557a8c92d814de67b6f3ac58e3dcdff35 100644
--- a/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
@@ -109,9 +109,10 @@ PaymentRequestSheetController::CreatePaymentView() {
pane_ = new views::View;
views::GridLayout* pane_layout = new views::GridLayout(pane_);
views::ColumnSet* pane_columns = pane_layout->AddColumnSet(0);
- pane_columns->AddColumn(
- views::GridLayout::Alignment::FILL, views::GridLayout::Alignment::LEADING,
- 0, views::GridLayout::SizeType::FIXED, kDialogWidth, kDialogWidth);
+ pane_columns->AddColumn(views::GridLayout::Alignment::FILL,
+ views::GridLayout::Alignment::LEADING, 0,
+ views::GridLayout::SizeType::FIXED,
+ GetActualDialogWidth(), GetActualDialogWidth());
pane_->SetLayoutManager(pane_layout);
pane_layout->StartRow(0, 0);
// This is owned by its parent. It's the container passed to FillContentView.

Powered by Google App Engine
This is Rietveld 408576698