| Index: components/password_manager/core/browser/password_store.cc
|
| diff --git a/components/password_manager/core/browser/password_store.cc b/components/password_manager/core/browser/password_store.cc
|
| index b9f7f2b66bb1390fa00a98c2ab2bdeff32f1ec08..6ccfaad337dde5bf507a93e4d39521aa738c5082 100644
|
| --- a/components/password_manager/core/browser/password_store.cc
|
| +++ b/components/password_manager/core/browser/password_store.cc
|
| @@ -38,13 +38,10 @@ PasswordStore::GetLoginsRequest::~GetLoginsRequest() {
|
| void PasswordStore::GetLoginsRequest::NotifyConsumerWithResults(
|
| std::vector<std::unique_ptr<PasswordForm>> results) {
|
| if (!ignore_logins_cutoff_.is_null()) {
|
| - results.erase(
|
| - std::remove_if(results.begin(), results.end(),
|
| - [this](const std::unique_ptr<PasswordForm>& credential) {
|
| - return (credential->date_created <
|
| - ignore_logins_cutoff_);
|
| - }),
|
| - results.end());
|
| + base::EraseIf(results,
|
| + [this](const std::unique_ptr<PasswordForm>& credential) {
|
| + return (credential->date_created < ignore_logins_cutoff_);
|
| + });
|
| }
|
|
|
| origin_task_runner_->PostTask(
|
|
|