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

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

Issue 2840013002: [Web Payments] Layout sheets after the width of their parent is known (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 894156103be555dd21c49cc3bfb570e2eb29979e..cbf84aae3b1a17ec4dd632a7831c50c3557f31f4 100644
--- a/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
@@ -30,10 +30,9 @@ PaymentRequestSheetController::~PaymentRequestSheetController() {}
std::unique_ptr<views::View> PaymentRequestSheetController::CreateView() {
// This is owned by its parent.
content_view_ = new views::View;
Mathieu 2017/04/26 13:17:06 I'm wondering if this line can be inside CreatePay
anthonyvd 2017/04/26 13:33:44 Great point, done.
-
- FillContentView(content_view_);
-
- return CreatePaymentView();
+ std::unique_ptr<views::View> view = CreatePaymentView();
+ UpdateContentView();
+ return view;
}
void PaymentRequestSheetController::UpdateContentView() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698