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

Unified Diff: google_apis/gcm/engine/connection_handler_impl.cc

Issue 1547233002: Convert Pass()→std::move() in //google_apis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: google_apis/gcm/engine/connection_handler_impl.cc
diff --git a/google_apis/gcm/engine/connection_handler_impl.cc b/google_apis/gcm/engine/connection_handler_impl.cc
index 0b7dce94eefdb6eeaa75b9284f6e26bd6e03010d..eb3e01ef19e4fe0fc985a5390764e97accdc7b7b 100644
--- a/google_apis/gcm/engine/connection_handler_impl.cc
+++ b/google_apis/gcm/engine/connection_handler_impl.cc
@@ -4,6 +4,8 @@
#include "google_apis/gcm/engine/connection_handler_impl.h"
+#include <utility>
+
#include "base/location.h"
#include "base/thread_task_runner_handle.h"
#include "google/protobuf/io/coded_stream.h"
@@ -388,7 +390,7 @@ void ConnectionHandlerImpl::OnGotMessageBytes() {
FROM_HERE,
base::Bind(&ConnectionHandlerImpl::GetNextMessage,
weak_ptr_factory_.GetWeakPtr()));
- read_callback_.Run(protobuf.Pass());
+ read_callback_.Run(std::move(protobuf));
return;
}
@@ -470,7 +472,7 @@ void ConnectionHandlerImpl::OnGotMessageBytes() {
connection_callback_.Run(net::OK);
}
}
- read_callback_.Run(protobuf.Pass());
+ read_callback_.Run(std::move(protobuf));
}
void ConnectionHandlerImpl::OnTimeout() {
« no previous file with comments | « google_apis/gcm/engine/connection_factory_impl_unittest.cc ('k') | google_apis/gcm/engine/connection_handler_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698