| 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 cf11ea09233102308dc821355a45cba84fd50e64..4a06efa3ec233736ccf1619189d31907b4949b73 100644
|
| --- a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| @@ -323,7 +323,8 @@ TEST_F(AutofillPopupControllerUnitTest, GetOrCreate) {
|
| static_cast<AutofillPopupController*>(controller3)->element_bounds());
|
| controller3->Hide();
|
|
|
| - delete test_controller;
|
| + // Hide the test_controller to delete it.
|
| + test_controller->DoHide();
|
| }
|
|
|
| #if !defined(OS_ANDROID)
|
|
|