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

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

Issue 2073093002: [Password Generation] Sends CSS classes inside autofill proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed useless FormStructure recreation in FormStructureTest.EncodeUploadRequest_WithCssClasses Created 4 years, 6 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_test_utils.cc
diff --git a/components/autofill/core/browser/autofill_test_utils.cc b/components/autofill/core/browser/autofill_test_utils.cc
index a5a89f6065e6e02878d1b41edfbd7de85f176da0..a27d8332db8d0eb08e813ed0c5cf0425340f67af 100644
--- a/components/autofill/core/browser/autofill_test_utils.cc
+++ b/components/autofill/core/browser/autofill_test_utils.cc
@@ -342,7 +342,8 @@ void FillUploadField(AutofillUploadContents::Field* field,
const char* control_type,
const char* label,
const char* autocomplete,
- unsigned autofill_type) {
+ unsigned autofill_type,
+ const char* css_classes) {
field->set_signature(signature);
if (name)
field->set_name(name);
@@ -353,6 +354,8 @@ void FillUploadField(AutofillUploadContents::Field* field,
if (autocomplete)
field->set_autocomplete(autocomplete);
field->set_autofill_type(autofill_type);
+ if (css_classes)
+ field->set_css_classes(css_classes);
}
void FillQueryField(AutofillQueryContents::Form::Field* field,
« no previous file with comments | « components/autofill/core/browser/autofill_test_utils.h ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698