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

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: Just rebased 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 b303a71763078c73f699575de8ea5e44ab5cbb1e..19019f51cd0d400b08644cdec7cae0d348fc0332 100644
--- a/components/password_manager/content/browser/credential_manager_impl.cc
+++ b/components/password_manager/content/browser/credential_manager_impl.cc
@@ -258,13 +258,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