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

Unified Diff: components/autofill/core/browser/autofill_manager.cc

Issue 1670763006: Autofill server-side heuristics for 2 fields password form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 10 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/browser/autofill_manager.cc
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
index 3bfcfd01c4d50562f9f1b14e3b88bccd3bb7ae98..f767e77dd7eb54db3802987a03a1262368b83def 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -943,7 +943,10 @@ bool AutofillManager::IsCreditCardUploadEnabled() {
bool AutofillManager::ShouldUploadForm(const FormStructure& form) {
return IsAutofillEnabled() && !driver_->IsOffTheRecord() &&
form.ShouldBeParsed() &&
- form.active_field_count() >= kRequiredFieldsForUpload;
+ (form.active_field_count() >= kRequiredFieldsForUpload ||
+ (form.all_fields_are_passwords() &&
+ form.active_field_count() >=
+ kRequiredFieldsForFormsWithOnlyPasswordFields));
}
void AutofillManager::ImportFormData(const FormStructure& submitted_form) {
« no previous file with comments | « components/autofill/content/renderer/form_cache.cc ('k') | components/autofill/core/browser/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698