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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 15987009: Update chrome/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698