Index: components/password_manager/core/browser/password_autofill_manager_unittest.cc |
diff --git a/components/password_manager/core/browser/password_autofill_manager_unittest.cc b/components/password_manager/core/browser/password_autofill_manager_unittest.cc |
index e8b5bd20d2c0b3ed205c418953306700290fce84..374081ebffe3bfe4719a184983d0e2229a564814 100644 |
--- a/components/password_manager/core/browser/password_autofill_manager_unittest.cc |
+++ b/components/password_manager/core/browser/password_autofill_manager_unittest.cc |
@@ -46,8 +46,6 @@ class MockPasswordManagerDriver : public StubPasswordManagerDriver { |
class TestPasswordManagerClient : public StubPasswordManagerClient { |
public: |
- PasswordManagerDriver* GetDriver() override { return &driver_; } |
- |
MockPasswordManagerDriver* mock_driver() { return &driver_; } |
private: |
@@ -90,10 +88,10 @@ class PasswordAutofillManagerTest : public testing::Test { |
} |
void InitializePasswordAutofillManager( |
- PasswordManagerClient* client, |
+ TestPasswordManagerClient* client, |
autofill::AutofillClient* autofill_client) { |
- password_autofill_manager_.reset( |
- new PasswordAutofillManager(client, autofill_client)); |
+ password_autofill_manager_.reset(new PasswordAutofillManager( |
+ client, client->mock_driver(), autofill_client)); |
password_autofill_manager_->OnAddPasswordFormMapping(fill_data_id_, |
fill_data_); |
} |