Chromium Code Reviews| OLD | NEW | 
|---|---|
| (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 | |
| OLD | NEW |