Use StringPiece more in base::Value interfaces.
Many of these functions are called with string literals.
This leads to two problems:
- Implicit construction of std::string generates a
surprising amount of code, since STL code is often
inlined.
- We construct a temporary string, immediately copy it,
and then throw away the original temporary.
Effect of this CL on an official Linux binary:
before: 100.41 MiB
after: 99.56 MiB
BUG=none
Review-Url: https://codereview.chromium.org/2278723003
Cr-Commit-Position: refs/heads/master@{#414450}
6 files changed