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

Unified Diff: components/password_manager/content/browser/credential_manager_impl.cc

Issue 2133953002: PasswordForm -> FormDigest for GetLogins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@413020_ssl_valid
Patch Set: Nits addressed Created 4 years, 5 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/content/browser/credential_manager_impl.cc
diff --git a/components/password_manager/content/browser/credential_manager_impl.cc b/components/password_manager/content/browser/credential_manager_impl.cc
index e389af6066df5ee185a12c5317c5fd883fad4fb4..93c216b8b0cbd94ffd2a95c37afb6571e1f996ec 100644
--- a/components/password_manager/content/browser/credential_manager_impl.cc
+++ b/components/password_manager/content/browser/credential_manager_impl.cc
@@ -264,13 +264,13 @@ PasswordManagerClient* CredentialManagerImpl::client() const {
return client_;
}
-autofill::PasswordForm CredentialManagerImpl::GetSynthesizedFormForOrigin()
+PasswordStore::FormDigest CredentialManagerImpl::GetSynthesizedFormForOrigin()
const {
- autofill::PasswordForm synthetic_form;
- synthetic_form.origin = web_contents()->GetLastCommittedURL().GetOrigin();
- synthetic_form.signon_realm = synthetic_form.origin.spec();
- synthetic_form.scheme = autofill::PasswordForm::SCHEME_HTML;
- return synthetic_form;
+ PasswordStore::FormDigest digest = {
+ autofill::PasswordForm::SCHEME_HTML, std::string(),
+ web_contents()->GetLastCommittedURL().GetOrigin()};
+ digest.signon_realm = digest.origin.spec();
+ return digest;
}
void CredentialManagerImpl::DoneRequiringUserMediation() {

Powered by Google App Engine
This is Rietveld 408576698