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

Side by Side Diff: chrome/browser/ui/views/payments/payment_dialog_state.cc

Issue 2528503002: [WebPayments] Implement state transitions in desktop WebPayments dialog. (Closed)
Patch Set: Make PaymentDialogState own the view returned through GetView Created 4 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/payments/payment_dialog_state.h"
6
7 #include "ui/views/view.h"
8
9 namespace payments {
10
11 PaymentDialogState::PaymentDialogState()
please use gerrit instead 2016/12/07 23:29:19 Please initialize interactiable_ boolean here. Oth
anthonyvd 2016/12/08 20:31:22 Ack. interactable_ doesn't exist anymore as of pat
12 : view_(nullptr) {}
sky 2016/12/08 03:58:17 No need to initialize view_ here (default value is
anthonyvd 2016/12/08 20:31:22 Done.
13
14 PaymentDialogState::~PaymentDialogState() {}
15
16 views::View* PaymentDialogState::GetView() {
17 if (!view_) {
18 view_.reset(CreateView());
19 view_->set_owned_by_client();
20 }
21
22 return view_.get();
23 }
24
25 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698