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

Issue 2383013004: Remove some non-essential StringPiece->std::string conversion in base/ (Closed)

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

Description

Remove some non-essential StringPiece->std::string conversion in base/ StringValue already accepts StringPiece as constructor. Get/SetWithoutPathExpansion readily takes StringPiece, so don't covert StringPiece -> std::string then back to StringPiece for these. Searching token can be done within StringPieces, without needing to create temporary strings. BUG=None Test=None, internal change. Committed: https://crrev.com/1cbc7b45b59471142424f8a64c0ef40daa8be0e5 Cr-Commit-Position: refs/heads/master@{#422620}

Patch Set 1 #

Patch Set 2 : add one more #

Patch Set 3 : git cl format #

Total comments: 2

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -17 lines) Patch
M base/json/json_parser.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M base/values.cc View 1 2 3 8 chunks +12 lines, -14 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
lazyboy
4 years, 2 months ago (2016-10-03 17:35:56 UTC) #7
dcheng
Nice find =) LGTM with a nit https://codereview.chromium.org/2383013004/diff/40001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2383013004/diff/40001/base/values.cc#newcode396 base/values.cc:396: delimiter_position != ...
4 years, 2 months ago (2016-10-03 19:56:55 UTC) #8
lazyboy
https://codereview.chromium.org/2383013004/diff/40001/base/values.cc File base/values.cc (right): https://codereview.chromium.org/2383013004/diff/40001/base/values.cc#newcode396 base/values.cc:396: delimiter_position != std::string::npos; On 2016/10/03 19:56:54, dcheng wrote: > ...
4 years, 2 months ago (2016-10-03 20:51:15 UTC) #10
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/2383013004/60001
4 years, 2 months ago (2016-10-04 00:12:18 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-04 00:19:17 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 00:21:21 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1cbc7b45b59471142424f8a64c0ef40daa8be0e5
Cr-Commit-Position: refs/heads/master@{#422620}

Powered by Google App Engine
This is Rietveld 408576698