Index: chrome/browser/password_manager/password_store_x_unittest.cc |
diff --git a/chrome/browser/password_manager/password_store_x_unittest.cc b/chrome/browser/password_manager/password_store_x_unittest.cc |
index dbd8065c6897acd087139d7231a4d91dbee1b0db..f0816388731eee6c23175b1fc327f9f3165131f9 100644 |
--- a/chrome/browser/password_manager/password_store_x_unittest.cc |
+++ b/chrome/browser/password_manager/password_store_x_unittest.cc |
@@ -30,6 +30,7 @@ using autofill::PasswordForm; |
using content::BrowserThread; |
using password_manager::ContainsAllPasswordForms; |
using password_manager::PasswordStoreChange; |
+using password_manager::PasswordStoreChangeList; |
using testing::_; |
using testing::DoAll; |
using testing::ElementsAreArray; |
@@ -59,7 +60,9 @@ class FailingBackend : public PasswordStoreX::NativeBackend { |
public: |
virtual bool Init() OVERRIDE { return true; } |
- virtual bool AddLogin(const PasswordForm& form) OVERRIDE { return false; } |
+ virtual PasswordStoreChangeList AddLogin(const PasswordForm& form) OVERRIDE { |
+ return PasswordStoreChangeList(); |
+ } |
virtual bool UpdateLogin(const PasswordForm& form) OVERRIDE { return false; } |
virtual bool RemoveLogin(const PasswordForm& form) OVERRIDE { return false; } |
@@ -92,9 +95,10 @@ class MockBackend : public PasswordStoreX::NativeBackend { |
public: |
virtual bool Init() OVERRIDE { return true; } |
- virtual bool AddLogin(const PasswordForm& form) OVERRIDE { |
+ virtual PasswordStoreChangeList AddLogin(const PasswordForm& form) OVERRIDE { |
all_forms_.push_back(form); |
- return true; |
+ PasswordStoreChange change(PasswordStoreChange::ADD, form); |
+ return PasswordStoreChangeList(1, change); |
} |
virtual bool UpdateLogin(const PasswordForm& form) OVERRIDE { |