Don't copy ColumnMap in CSVPassword
CSVPassword represents a credential stored in one CSV line. For parsing the CSV line, CSVPassword needs to understand the meaning of columns, which it does through a ColumnMap -- a map from column indices to column types. Currently, CSVPassword stores its own copy of the map. This map is the same for all lines in a single CSV blob. Sharing this single map among all CSVPassword instances avoids many copies of the map. Therefore this CL changes CSVPassword to keep a reference to the map. Bug: 934326 Change-Id: Id52e3db26fa1fd804f987103bf62e295102f2ce8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1698401 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Auto-Submit: Vaclav Brozek <vabr@chromium.org> Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#681888}
Showing
Please register or sign in to comment