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

Unified Diff: components/autofill/core/common/password_form.cc

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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/autofill/core/common/password_form.cc
diff --git a/components/autofill/core/common/password_form.cc b/components/autofill/core/common/password_form.cc
index 8fd60d0f02b5a27598650a3993a2430d7bea8c40..c9795bb801748f9dadc97a6e181c5b3554c18e6f 100644
--- a/components/autofill/core/common/password_form.cc
+++ b/components/autofill/core/common/password_form.cc
@@ -55,6 +55,8 @@ void PasswordFormToJSON(const PasswordForm& form,
std::ostringstream layout_string_stream;
layout_string_stream << form.layout;
target->SetString("layout", layout_string_stream.str());
+ target->SetBoolean("was_parsed_using_autofill_predictions",
+ form.was_parsed_using_autofill_predictions);
}
} // namespace
@@ -70,7 +72,8 @@ PasswordForm::PasswordForm()
times_used(0),
generation_upload_status(NO_SIGNAL_SENT),
skip_zero_click(false),
- layout(Layout::LAYOUT_OTHER) {
+ layout(Layout::LAYOUT_OTHER),
+ was_parsed_using_autofill_predictions(false) {
}
PasswordForm::~PasswordForm() {
@@ -109,7 +112,9 @@ bool PasswordForm::operator==(const PasswordForm& form) const {
avatar_url == form.avatar_url &&
federation_url == form.federation_url &&
skip_zero_click == form.skip_zero_click &&
- layout == form.layout;
+ layout == form.layout &&
+ was_parsed_using_autofill_predictions ==
+ form.was_parsed_using_autofill_predictions;
}
bool PasswordForm::operator!=(const PasswordForm& form) const {
« no previous file with comments | « components/autofill/core/common/password_form.h ('k') | components/autofill/ios/browser/autofill_driver_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698