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

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

Issue 16207005: Fix remaining uses of WeakPtr<T>'s operator T* conversion (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/autofill_popup_controller_unittest.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
index cd4f8b525314d3f92c49aa408b87cf7f7f8b7c2e..06883504abf1db2ca75b0111d84d12a97086d808 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
@@ -388,7 +388,7 @@ TEST_F(AutofillPopupControllerUnitTest, GetOrCreate) {
EXPECT_CALL(*test_controller, Hide());
gfx::RectF bounds(0.f, 0.f, 1.f, 2.f);
- AutofillPopupControllerImpl* controller3 =
+ base::WeakPtr<AutofillPopupControllerImpl> controller3 =
AutofillPopupControllerImpl::GetOrCreate(
test_controller->GetWeakPtr(),
delegate.GetWeakPtr(),
@@ -396,7 +396,8 @@ TEST_F(AutofillPopupControllerUnitTest, GetOrCreate) {
bounds);
EXPECT_EQ(
bounds,
- static_cast<AutofillPopupController*>(controller3)->element_bounds());
+ static_cast<AutofillPopupController*>(controller3.get())->
+ element_bounds());
controller3->Hide();
// Hide the test_controller to delete it.
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | content/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698