| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| index ba4dcded08083edde6b76e4b385589beb299b093..61e156c94d9464fb9b91fac82f08b0087068929a 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| @@ -340,7 +340,7 @@ bool IsCardHolderNameValidForWallet(const string16& name) {
|
| AutofillDialogController::~AutofillDialogController() {}
|
|
|
| AutofillDialogControllerImpl::~AutofillDialogControllerImpl() {
|
| - if (popup_controller_)
|
| + if (popup_controller_.get())
|
| popup_controller_->Hide();
|
|
|
| GetMetricLogger().LogDialogInitialUserState(
|
| @@ -1299,7 +1299,7 @@ void AutofillDialogControllerImpl::UserEditedOrActivatedInput(
|
|
|
| // If the user clicks while the popup is already showing, be sure to hide
|
| // it.
|
| - if (!was_edit && popup_controller_) {
|
| + if (!was_edit && popup_controller_.get()) {
|
| HidePopup();
|
| return;
|
| }
|
| @@ -1828,7 +1828,7 @@ void AutofillDialogControllerImpl::UpdateAccountChooserView() {
|
|
|
| bool AutofillDialogControllerImpl::HandleKeyPressEventInInput(
|
| const content::NativeWebKeyboardEvent& event) {
|
| - if (popup_controller_)
|
| + if (popup_controller_.get())
|
| return popup_controller_->HandleKeyPressEvent(event);
|
|
|
| return false;
|
| @@ -2372,7 +2372,7 @@ DetailInputs* AutofillDialogControllerImpl::MutableRequestedFieldsForSection(
|
| }
|
|
|
| void AutofillDialogControllerImpl::HidePopup() {
|
| - if (popup_controller_)
|
| + if (popup_controller_.get())
|
| popup_controller_->Hide();
|
| input_showing_popup_ = NULL;
|
| }
|
|
|