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

Issue 1451943002: Make base::trace_event::TracedValue use StringPiece where possible. (Closed)

Created:
5 years, 1 month ago by jbroman
Modified:
5 years, 1 month ago
CC:
chromium-reviews, tracing+reviews_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make base::trace_event::TracedValue use StringPiece where possible. These strings wind up being converted into StringPiece before they are passed to base::Pickle. By exposing this in the TracedValue interface (which is nearly transparent to callers, since std::string is implicitly convertible), callers which have other types convertible to StringPiece can call through without a copy into an std::string. Committed: https://crrev.com/9abd507a166493b926dc94605baf16305b42d2f7 Cr-Commit-Position: refs/heads/master@{#360341}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -29 lines) Patch
M base/trace_event/trace_event_argument.h View 3 chunks +12 lines, -11 lines 0 comments Download
M base/trace_event/trace_event_argument.cc View 9 chunks +18 lines, -18 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
jbroman
I don't see any reason not to push StringPiece to the API here, and it ...
5 years, 1 month ago (2015-11-17 18:16:53 UTC) #2
Primiano Tucci (use gerrit)
Hmm this all makes sense to me. The only think that makes me "hmm" is: ...
5 years, 1 month ago (2015-11-17 18:33:36 UTC) #4
Primiano Tucci (use gerrit)
Nope, even with freshly brewed coffee I can't see a reason not to do it. ...
5 years, 1 month ago (2015-11-18 11:48:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1451943002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1451943002/1
5 years, 1 month ago (2015-11-18 14:55:48 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 1 month ago (2015-11-18 16:19:55 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-11-18 16:20:44 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9abd507a166493b926dc94605baf16305b42d2f7
Cr-Commit-Position: refs/heads/master@{#360341}

Powered by Google App Engine
This is Rietveld 408576698