Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2879)

Unified Diff: components/password_manager/core/browser/credential_manager_pending_signed_out_task.cc

Issue 1159323003: Credential Management: Rename 'notifySignedOut' to 'requireUserMediation' (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-password
Patch Set: Rebase. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/credential_manager_pending_signed_out_task.cc
diff --git a/components/password_manager/core/browser/credential_manager_pending_signed_out_task.cc b/components/password_manager/core/browser/credential_manager_pending_signed_out_task.cc
deleted file mode 100644
index 5b2545c16c97f663329a048943e3dfac976e6344..0000000000000000000000000000000000000000
--- a/components/password_manager/core/browser/credential_manager_pending_signed_out_task.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/password_manager/core/browser/credential_manager_pending_signed_out_task.h"
-
-#include "components/autofill/core/common/password_form.h"
-#include "components/password_manager/core/browser/password_store.h"
-#include "url/gurl.h"
-
-namespace password_manager {
-
-CredentialManagerPendingSignedOutTask::CredentialManagerPendingSignedOutTask(
- CredentialManagerPendingSignedOutTaskDelegate* delegate,
- const GURL& origin)
- : delegate_(delegate) {
- origins_.insert(origin.spec());
-}
-
-CredentialManagerPendingSignedOutTask::
- ~CredentialManagerPendingSignedOutTask() = default;
-
-void CredentialManagerPendingSignedOutTask::AddOrigin(const GURL& origin) {
- origins_.insert(origin.spec());
-}
-
-void CredentialManagerPendingSignedOutTask::OnGetPasswordStoreResults(
- ScopedVector<autofill::PasswordForm> results) {
- PasswordStore* store = delegate_->GetPasswordStore();
- for (autofill::PasswordForm* form : results) {
- if (origins_.count(form->origin.spec())) {
- form->skip_zero_click = true;
- // Note that UpdateLogin ends up copying the form while posting a task to
- // update the PasswordStore, so it's fine to let |results| delete the
- // original at the end of this method.
- store->UpdateLogin(*form);
- }
- }
-
- delegate_->DoneSigningOut();
-}
-
-} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698