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

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

Issue 2889713002: Landing Recent QUIC changes until Fri May 12 18:23:26 2017 +0000 (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 | « net/quic/test_tools/quic_sent_packet_manager_peer.cc ('k') | 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 | « net/quic/test_tools/quic_sent_packet_manager_peer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698