Commit 2712a4cd authored by Mohamed Amir Yosef's avatar Mohamed Amir Yosef Committed by Commit Bot

[Passwords] Fix crash in IsAccountStore() when there is login_db_

This issues has been surfaced in crrev.com/c/2364508.
Details are in the linked bug

Bug: 1119758
Change-Id: Id973f22c31a37853351034ac1d449f6e7afed396
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2366740Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800105}
parent e8dd4b2d
......@@ -355,7 +355,7 @@ PasswordStoreSync::MetadataStore* PasswordStoreDefault::GetMetadataStore() {
}
bool PasswordStoreDefault::IsAccountStore() const {
return login_db_->is_account_store();
return login_db_ && login_db_->is_account_store();
}
bool PasswordStoreDefault::DeleteAndRecreateDatabaseFile() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment