Commit ce18f5b3 authored by Mohamed Amir Yosef's avatar Mohamed Amir Yosef Committed by Commit Bot

[Passwords] Check login_db_ in DeleteAndRecreateDatabaseFile()

Change-Id: I03c1dd29b972819f6021a402f2a481ce4b304f3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2366724Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800115}
parent 697a12bf
......@@ -359,7 +359,7 @@ bool PasswordStoreDefault::IsAccountStore() const {
}
bool PasswordStoreDefault::DeleteAndRecreateDatabaseFile() {
return login_db_->DeleteAndRecreateDatabaseFile();
return login_db_ && login_db_->DeleteAndRecreateDatabaseFile();
}
void PasswordStoreDefault::ResetLoginDB() {
......
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