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

Unified Diff: content/child/web_data_consumer_handle_impl.cc

Issue 1544293002: Convert Pass()→std::move() in //content (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: content/child/web_data_consumer_handle_impl.cc
diff --git a/content/child/web_data_consumer_handle_impl.cc b/content/child/web_data_consumer_handle_impl.cc
index 0d8eca8c6e3d64ce03cd10823c28a0d343c80c6f..f4ded9d70e348d91588c2f7d9363e416c11f30c7 100644
--- a/content/child/web_data_consumer_handle_impl.cc
+++ b/content/child/web_data_consumer_handle_impl.cc
@@ -5,8 +5,9 @@
#include "content/child/web_data_consumer_handle_impl.h"
#include <stdint.h>
-
#include <limits>
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "base/macros.h"
@@ -19,7 +20,7 @@ using Result = blink::WebDataConsumerHandle::Result;
class WebDataConsumerHandleImpl::Context
: public base::RefCountedThreadSafe<Context> {
public:
- explicit Context(Handle handle) : handle_(handle.Pass()) {}
+ explicit Context(Handle handle) : handle_(std::move(handle)) {}
const Handle& handle() { return handle_; }
@@ -121,8 +122,7 @@ void WebDataConsumerHandleImpl::ReaderImpl::OnHandleGotReadable(MojoResult) {
}
WebDataConsumerHandleImpl::WebDataConsumerHandleImpl(Handle handle)
- : context_(new Context(handle.Pass())) {
-}
+ : context_(new Context(std::move(handle))) {}
WebDataConsumerHandleImpl::~WebDataConsumerHandleImpl() {
}
« no previous file with comments | « content/child/shared_memory_data_consumer_handle_unittest.cc ('k') | content/child/web_data_consumer_handle_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698