[Autofill] Refactored FormStructure::SectionenedFieldIndexes.
This CL refactors FormStructure::SectionenedFieldIndexes in some ways: - it moves the class from the private part of the header to the body; - it eliminates the std::vector copies in CurrentSection() and CurrentIndex(); - it eliminates the use of pointer arithmetic in FormStructure::RationalizeRepeatedFields(); - it eliminates casts of -1 to size_t, which is undefined behaviour; - it names the member variables in a style-conformant way. Bug: 1007974 Change-Id: Id6580c7962abd9d69bdb5c1f5a7b1bed3f9759c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2587061 Auto-Submit: Christoph Schwering <schwering@google.com> Commit-Queue: Matthias Körber <koerber@google.com> Reviewed-by:Matthias Körber <koerber@google.com> Cr-Commit-Position: refs/heads/master@{#836782}
Showing
Please register or sign in to comment