[filesapp] Add DevToolsListener SpanToStringPiece helper
Add SpanToStringPiece helper and use it handle response messages from the devtools agent. This avoids the implicit memcpy under-the-hood of the span to temporary std::string (message) conversion. Minor: remove unused includes, and add base::span, base::string_piece includes. No change in behavior. Tbr: benreich Bug: 1113941 Change-Id: I9a9295230b0a807d3405d70af92cf32ac88cbdaa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2470280 Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#816908}
Showing
Please register or sign in to comment