Replace some Tokenize calls with SplitString.
Tokenize is now a legacy wrapper around a particular variant of SplitString call. I want to remove the Tokenize wrappers.
This patch uses the StringPiece version in obvious cases which saves allocations, and in many places removes the vector temporary in preferences to a range-based for loop.
Review URL: https://codereview.chromium.org/1197243004
Cr-Commit-Position: refs/heads/master@{#335856}
CrOS-Libchrome-Original-Commit: 37fd9d7d258626d3a1bd6db9fc99c97f981c21b1
5 files changed