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

Unified Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.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, 6 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/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 9a367b5eb5a6187ab3e9ad6d0f311c963d98a56f..3ff54145983011956632c6778aac9cf4c58147ee 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -117,7 +117,7 @@ void TabAutofillManagerDelegate::ShowAutocheckoutBubble(
}
void TabAutofillManagerDelegate::HideAutocheckoutBubble() {
- if (autocheckout_bubble_)
+ if (autocheckout_bubble_.get())
autocheckout_bubble_->HideBubble();
}
@@ -161,7 +161,7 @@ void TabAutofillManagerDelegate::ShowAutofillPopup(
}
void TabAutofillManagerDelegate::HideAutofillPopup() {
- if (popup_controller_)
+ if (popup_controller_.get())
popup_controller_->Hide();
}
@@ -172,7 +172,7 @@ void TabAutofillManagerDelegate::UpdateProgressBar(double value) {
}
void TabAutofillManagerDelegate::HideRequestAutocompleteDialog() {
- if (dialog_controller_)
+ if (dialog_controller_.get())
dialog_controller_->Hide();
}
@@ -183,7 +183,7 @@ void TabAutofillManagerDelegate::DidNavigateMainFrame(
// the dialog.
bool was_redirect = details.entry &&
content::PageTransitionIsRedirect(details.entry->GetTransitionType());
- if (dialog_controller_ &&
+ if (dialog_controller_.get() &&
(dialog_controller_->dialog_type() == DIALOG_TYPE_REQUEST_AUTOCOMPLETE ||
(!dialog_controller_->AutocheckoutIsRunning() && !was_redirect))) {
HideRequestAutocompleteDialog();
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc ('k') | chrome/browser/ui/gtk/global_error_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698