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

Unified Diff: components/nacl/loader/nacl_ipc_adapter.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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
« no previous file with comments | « components/nacl/browser/pnacl_host.cc ('k') | components/nacl/loader/nacl_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nacl_ipc_adapter.cc
diff --git a/components/nacl/loader/nacl_ipc_adapter.cc b/components/nacl/loader/nacl_ipc_adapter.cc
index 14db5f9b17baa0e063edbf09bed053b5b3f156e8..d8ac1c7f84707b766fcbdc875d048e16c6cf6a3c 100644
--- a/components/nacl/loader/nacl_ipc_adapter.cc
+++ b/components/nacl/loader/nacl_ipc_adapter.cc
@@ -6,6 +6,7 @@
#include <limits.h>
#include <string.h>
+#include <utility>
#include "base/bind.h"
#include "base/location.h"
@@ -365,7 +366,7 @@ NaClIPCAdapter::NaClIPCAdapter(scoped_ptr<IPC::Channel> channel,
cond_var_(&lock_),
task_runner_(runner),
locked_data_() {
- io_thread_data_.channel_ = channel.Pass();
+ io_thread_data_.channel_ = std::move(channel);
}
void NaClIPCAdapter::ConnectChannel() {
@@ -636,7 +637,7 @@ scoped_ptr<IPC::Message> CreateOpenResourceReply(
// Write empty file tokens.
new_msg->WriteUInt64(0); // token_lo
new_msg->WriteUInt64(0); // token_hi
- return new_msg.Pass();
+ return new_msg;
}
void NaClIPCAdapter::SaveOpenResourceMessage(
« no previous file with comments | « components/nacl/browser/pnacl_host.cc ('k') | components/nacl/loader/nacl_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698