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

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

Issue 137723008: Remove DataModelWrapper from android build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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
« no previous file with comments | « components/autofill/core/browser/form_structure.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/form_structure.cc
diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc
index a95379816ac49c052af9c3f30df41904644e8c12..aa42b4f434fc4996cd1e3ca4164f3cc7de41e5a2 100644
--- a/components/autofill/core/browser/form_structure.cc
+++ b/components/autofill/core/browser/form_structure.cc
@@ -1150,6 +1150,27 @@ void FormStructure::ParseFieldTypesFromAutocompleteAttributes(
}
}
+bool FormStructure::FillFields(
+ const std::vector<ServerFieldType>& types,
+ const InputFieldComparator& matches,
+ const base::Callback<base::string16(const AutofillType&)>& get_info,
+ const std::string& app_locale) {
+ bool filled_something = false;
+ for (size_t i = 0; i < field_count(); ++i) {
+ for (size_t j = 0; j < types.size(); ++j) {
+ if (matches.Run(types[j], *field(i))) {
+ AutofillField::FillFormField(*field(i),
+ get_info.Run(field(i)->Type()),
+ app_locale,
+ field(i));
+ filled_something = true;
+ break;
+ }
+ }
+ }
+ return filled_something;
+}
+
void FormStructure::IdentifySections(bool has_author_specified_sections) {
if (fields_.empty())
return;
« no previous file with comments | « components/autofill/core/browser/form_structure.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698