| 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 4bd1f01de5cce9c78e1784b8805f2b1fa9980a67..bd945d8b898dd60a7b5e06b763fe207d6dec6870 100644
|
| --- a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| @@ -332,7 +332,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)
|
|
|