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

Issue 2278723003: Use StringPiece more in base::Value interfaces. (Closed)

Created:
4 years, 3 months ago by dcheng
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/16d6f53c350781fc725ea33d8e74c66a4b49c9bf Cr-Commit-Position: refs/heads/master@{#414450}

Patch Set 1 #

Total comments: 2

Patch Set 2 : CrOS build fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -122 lines) Patch
M base/json/json_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/values.h View 6 chunks +41 lines, -49 lines 0 comments Download
M base/values.cc View 28 chunks +57 lines, -66 lines 0 comments Download
M chrome/browser/ui/webui/plugins/plugins_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/arc/net/arc_net_host_impl.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M components/domain_reliability/context_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
dcheng
https://codereview.chromium.org/2278723003/diff/1/base/values.h File base/values.h (right): https://codereview.chromium.org/2278723003/diff/1/base/values.h#newcode155 base/values.h:155: explicit StringValue(const string16& in_value); I didn't bother with string16, ...
4 years, 3 months ago (2016-08-25 07:39:34 UTC) #5
dcheng
+juliatuttle for domain reliability +lhchavez for arc++
4 years, 3 months ago (2016-08-25 08:17:21 UTC) #11
Julia Tuttle
On 2016/08/25 08:17:21, dcheng wrote: > +juliatuttle for domain reliability components/domain_reliability lgtm!
4 years, 3 months ago (2016-08-25 13:09:28 UTC) #14
Luis Héctor Chávez
components/arc lgtm
4 years, 3 months ago (2016-08-25 15:32:22 UTC) #15
Nico
lgtm, nice!
4 years, 3 months ago (2016-08-25 15:37:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278723003/20001
4 years, 3 months ago (2016-08-25 16:02:53 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-25 16:07:28 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 16:09:17 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/16d6f53c350781fc725ea33d8e74c66a4b49c9bf
Cr-Commit-Position: refs/heads/master@{#414450}

Powered by Google App Engine
This is Rietveld 408576698