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

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

Issue 1832933002: Update the |skip_zero_click| flag of a credential when selected in the account chooser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 9 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/password_manager_client.h
diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h
index 46485f61e97636cad7048202badd3a751a65582c..942fab9ea19d717963425ed88b780a4a28119af4 100644
--- a/components/password_manager/core/browser/password_manager_client.h
+++ b/components/password_manager/core/browser/password_manager_client.h
@@ -22,7 +22,6 @@ class AutofillManager;
namespace password_manager {
-struct CredentialInfo;
class LogManager;
class PasswordFormManager;
class PasswordManager;
@@ -45,6 +44,9 @@ enum class CredentialSourceType {
// environment.
class PasswordManagerClient {
public:
+ using CredentialsCallback =
+ base::Callback<void(const autofill::PasswordForm*)>;
+
PasswordManagerClient() {}
virtual ~PasswordManagerClient() {}
@@ -94,7 +96,7 @@ class PasswordManagerClient {
ScopedVector<autofill::PasswordForm> local_forms,
ScopedVector<autofill::PasswordForm> federated_forms,
const GURL& origin,
- base::Callback<void(const CredentialInfo&)> callback) = 0;
+ const CredentialsCallback& callback) = 0;
// Informs the embedder that the user has manually requested to save the
// password in the focused password field.

Powered by Google App Engine
This is Rietveld 408576698