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

Unified Diff: net/quic/chromium/crypto/channel_id_chromium.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/proxy/proxy_config_service_linux.cc ('k') | net/quic/core/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/crypto/channel_id_chromium.cc
diff --git a/net/quic/chromium/crypto/channel_id_chromium.cc b/net/quic/chromium/crypto/channel_id_chromium.cc
index 164e1e5841e8029f38b037f1377a8179d14f9e05..f91f466aa8cac1a232afe90278c34a597e12a722 100644
--- a/net/quic/chromium/crypto/channel_id_chromium.cc
+++ b/net/quic/chromium/crypto/channel_id_chromium.cc
@@ -128,7 +128,7 @@ QuicAsyncStatus ChannelIDSourceChromium::Job::GetChannelIDKey(
next_state_ = STATE_GET_CHANNEL_ID_KEY;
switch (DoLoop(OK)) {
case OK:
- channel_id_key->reset(channel_id_key_.release());
+ *channel_id_key = std::move(channel_id_key_);
return QUIC_SUCCESS;
case ERR_IO_PENDING:
callback_.reset(callback);
« no previous file with comments | « net/proxy/proxy_config_service_linux.cc ('k') | net/quic/core/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698