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

Unified Diff: net/quic/core/quic_crypto_client_stream.cc

Issue 2503993002: Change unique_ptr::reset() for std::move (Closed)
Patch Set: Change unique_ptr::reset() for std::move Created 4 years 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/core/crypto/quic_crypto_client_config.cc ('k') | net/server/http_server_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_crypto_client_stream.cc
diff --git a/net/quic/core/quic_crypto_client_stream.cc b/net/quic/core/quic_crypto_client_stream.cc
index b375a0c4695ab57d382e02377690fb1d8c043b75..98a64abafd8c8fd156b7784bc80f8e00e297bb26 100644
--- a/net/quic/core/quic_crypto_client_stream.cc
+++ b/net/quic/core/quic_crypto_client_stream.cc
@@ -38,7 +38,7 @@ void QuicCryptoClientStream::ChannelIDSourceCallbackImpl::Run(
return;
}
- stream_->channel_id_key_.reset(channel_id_key->release());
+ stream_->channel_id_key_ = std::move(*channel_id_key);
stream_->channel_id_source_callback_run_ = true;
stream_->channel_id_source_callback_ = nullptr;
stream_->DoHandshakeLoop(nullptr);
@@ -68,7 +68,7 @@ void QuicCryptoClientStream::ProofVerifierCallbackImpl::Run(
stream_->verify_ok_ = ok;
stream_->verify_error_details_ = error_details;
- stream_->verify_details_.reset(details->release());
+ stream_->verify_details_ = std::move(*details);
stream_->proof_verify_callback_ = nullptr;
stream_->DoHandshakeLoop(nullptr);
« no previous file with comments | « net/quic/core/crypto/quic_crypto_client_config.cc ('k') | net/server/http_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698