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

Unified Diff: chrome/browser/password_manager/native_backend_libsecret.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: chrome/browser/password_manager/native_backend_libsecret.cc
diff --git a/chrome/browser/password_manager/native_backend_libsecret.cc b/chrome/browser/password_manager/native_backend_libsecret.cc
index 90711f8be6311164ab85c0eb4be9a0d79ef4ffaf..20042f2364595b27f4b120c8b486960d329c124c 100644
--- a/chrome/browser/password_manager/native_backend_libsecret.cc
+++ b/chrome/browser/password_manager/native_backend_libsecret.cc
@@ -27,6 +27,7 @@
using autofill::PasswordForm;
using base::UTF8ToUTF16;
using base::UTF16ToUTF8;
+using password_manager::PasswordStore;
namespace {
const char kEmptyString[] = "";
@@ -298,7 +299,7 @@ bool NativeBackendLibsecret::DisableAutoSignInForOrigins(
}
bool NativeBackendLibsecret::GetLogins(
- const PasswordForm& form,
+ const PasswordStore::FormDigest& form,
ScopedVector<autofill::PasswordForm>* forms) {
return GetLoginsList(&form, ALL_LOGINS, forms);
}
@@ -328,7 +329,9 @@ bool NativeBackendLibsecret::AddUpdateLoginSearch(
return false;
}
- *forms = ConvertFormList(found, &lookup_form);
+ PasswordStore::FormDigest form = {
dvadym 2016/07/20 13:43:02 nit: Why don't to use constructor of FormDigest th
vabr (Chromium) 2016/07/20 14:13:06 Done.
+ lookup_form.scheme, lookup_form.signon_realm, lookup_form.origin};
+ *forms = ConvertFormList(found, &form);
return true;
}
@@ -402,7 +405,7 @@ bool NativeBackendLibsecret::GetAllLogins(
}
bool NativeBackendLibsecret::GetLoginsList(
- const PasswordForm* lookup_form,
+ const PasswordStore::FormDigest* lookup_form,
GetLoginsListOptions options,
ScopedVector<autofill::PasswordForm>* forms) {
LibsecretAttributesBuilder attrs;
@@ -498,7 +501,7 @@ bool NativeBackendLibsecret::RemoveLoginsBetween(
ScopedVector<autofill::PasswordForm> NativeBackendLibsecret::ConvertFormList(
GList* found,
- const PasswordForm* lookup_form) {
+ const PasswordStore::FormDigest* lookup_form) {
ScopedVector<autofill::PasswordForm> forms;
password_manager::PSLDomainMatchMetric psl_domain_match_metric =
password_manager::PSL_DOMAIN_MATCH_NONE;

Powered by Google App Engine
This is Rietveld 408576698