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

[Passwords] SetStore for Compromised Credentials in TestPasswordStore

Bug: 1108422
Change-Id: Ib42812e5f4af6e4d5b346b9612cd03b4713091f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2367723Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800653}
parent d905484c
......@@ -337,7 +337,11 @@ std::vector<InteractionsStats> TestPasswordStore::GetAllSiteStatsImpl() {
bool TestPasswordStore::AddCompromisedCredentialsImpl(
const CompromisedCredentials& compromised_credentials) {
return compromised_credentials_.insert(compromised_credentials).second;
CompromisedCredentials cred = compromised_credentials;
cred.in_store = is_account_store_
? autofill::PasswordForm::Store::kAccountStore
: autofill::PasswordForm::Store::kProfileStore;
return compromised_credentials_.insert(std::move(cred)).second;
}
bool TestPasswordStore::RemoveCompromisedCredentialsImpl(
......
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