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

Unified Diff: net/tools/quic/quic_http_response_cache.h

Issue 2881423002: Migrate StringPiece::CopyToString to string::assign. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_http_response_cache.h
diff --git a/net/tools/quic/quic_http_response_cache.h b/net/tools/quic/quic_http_response_cache.h
index b77b80b628adf0ad06765fd9a94b0b238a81aa84..5c8f6ea779887cdb693ed196a6d8c848e826c30f 100644
--- a/net/tools/quic/quic_http_response_cache.h
+++ b/net/tools/quic/quic_http_response_cache.h
@@ -65,7 +65,9 @@ class QuicHttpResponseCache {
void set_trailers(SpdyHeaderBlock trailers) {
trailers_ = std::move(trailers);
}
- void set_body(QuicStringPiece body) { body.CopyToString(&body_); }
+ void set_body(QuicStringPiece body) {
+ body_.assign(body.data(), body.size());
+ }
private:
SpecialResponseType response_type_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698