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

Unified Diff: components/password_manager/core/browser/credential_manager_pending_request_task.h

Issue 2517993004: Refactor CredentialManagerImpl::Get. It should use PasswordStore::GetLogins(). (Closed)
Patch Set: iOS Created 4 years, 1 month 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_request_task.h
diff --git a/components/password_manager/core/browser/credential_manager_pending_request_task.h b/components/password_manager/core/browser/credential_manager_pending_request_task.h
index 00ad0bcc72ef2b047ee267fcc5de0295e3f7751f..3c96d4d59383a2214eb90bc744b5e2fc59754d1a 100644
--- a/components/password_manager/core/browser/credential_manager_pending_request_task.h
+++ b/components/password_manager/core/browser/credential_manager_pending_request_task.h
@@ -5,7 +5,6 @@
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_CREDENTIAL_MANAGER_PENDING_REQUEST_TASK_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_CREDENTIAL_MANAGER_PENDING_REQUEST_TASK_H_
-#include <set>
#include <string>
#include <vector>
@@ -37,9 +36,6 @@ class CredentialManagerPendingRequestTaskDelegate {
// Retrieves the current page origin.
virtual GURL GetOrigin() const = 0;
- // Retrieves a synthetic PasswordForm for the current page origin.
- virtual PasswordStore::FormDigest GetSynthesizedFormForOrigin() const = 0;
-
// Returns the PasswordManagerClient.
virtual PasswordManagerClient* client() const = 0;
@@ -60,10 +56,8 @@ class CredentialManagerPendingRequestTask : public PasswordStoreConsumer {
CredentialManagerPendingRequestTaskDelegate* delegate,
const SendCredentialCallback& callback,
bool request_zero_click_only,
- const GURL& request_origin,
bool include_passwords,
- const std::vector<GURL>& request_federations,
- const std::vector<std::string>& affiliated_realms);
+ const std::vector<GURL>& request_federations);
~CredentialManagerPendingRequestTask() override;
SendCredentialCallback send_callback() const { return send_callback_; }
@@ -79,8 +73,7 @@ class CredentialManagerPendingRequestTask : public PasswordStoreConsumer {
const bool zero_click_only_;
const GURL origin_;
const bool include_passwords_;
- std::set<std::string> federations_;
- std::set<std::string> affiliated_realms_;
+ std::vector<std::string> federations_;
vabr (Chromium) 2016/11/23 08:57:56 I'm not sure I understand why you made this a vect
vasilii 2016/11/23 09:40:54 sorted vector is faster than the set. An alternati
vabr (Chromium) 2016/11/23 09:51:03 Thanks for explaining! So this is the tradeoff fo
vasilii 2016/11/23 10:15:13 Reverted.
DISALLOW_COPY_AND_ASSIGN(CredentialManagerPendingRequestTask);
};

Powered by Google App Engine
This is Rietveld 408576698