Index: chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc |
diff --git a/chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc b/chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc |
index 8208ab5af98bfa259f5624bc56124313f0ccaeab..2bf5bbf3a9b9b7f7cec6aac66c4b98132a7b933f 100644 |
--- a/chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc |
+++ b/chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc |
@@ -117,7 +117,7 @@ TestManagePasswordsUIController::TestManagePasswordsUIController( |
// Do not silently replace an existing ManagePasswordsUIController because it |
// unregisters itself in WebContentsDestroyed(). |
EXPECT_FALSE(contents->GetUserData(UserDataKey())); |
- contents->SetUserData(UserDataKey(), this); |
+ contents->SetUserData(UserDataKey(), base::WrapUnique(this)); |
set_client(client); |
} |