Index: components/password_manager/core/browser/password_store_default.h |
diff --git a/components/password_manager/core/browser/password_store_default.h b/components/password_manager/core/browser/password_store_default.h |
index c8d076f2fa9eb4ebc0c5e76df050e9690998035a..3218de3ea6001d5ca57e37c28a1fde891f7ac8fb 100644 |
--- a/components/password_manager/core/browser/password_store_default.h |
+++ b/components/password_manager/core/browser/password_store_default.h |
@@ -68,6 +68,10 @@ class PasswordStoreDefault : public PasswordStore { |
return login_db_->DeleteAndRecreateDatabaseFile(); |
} |
+ void set_login_db(scoped_ptr<password_manager::LoginDatabase> login_db) { |
+ login_db_.swap(login_db); |
+ } |
+ |
private: |
// Resets |login_db_| on the background thread. |
void ResetLoginDB(); |