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

Unified Diff: components/nacl/browser/nacl_host_message_filter.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/nacl_file_host.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/nacl_host_message_filter.cc
diff --git a/components/nacl/browser/nacl_host_message_filter.cc b/components/nacl/browser/nacl_host_message_filter.cc
index c4f5d5fbc2768e214e269f4d11431748dd91cda5..a29103fc341f1e556e4d5cc71455a69ea0f0b64d 100644
--- a/components/nacl/browser/nacl_host_message_filter.cc
+++ b/components/nacl/browser/nacl_host_message_filter.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/sys_info.h"
#include "build/build_config.h"
@@ -224,9 +225,8 @@ void NaClHostMessageFilter::BatchOpenResourceFiles(
continue;
prefetched_resource_files.push_back(NaClResourcePrefetchResult(
- IPC::TakeFileHandleForProcess(file.Pass(), PeerHandle()),
- file_path_metadata,
- request_list[i].file_key));
+ IPC::TakeFileHandleForProcess(std::move(file), PeerHandle()),
+ file_path_metadata, request_list[i].file_key));
if (prefetched_resource_files.size() >= kMaxPreOpenResourceFiles)
break;
@@ -324,7 +324,7 @@ void NaClHostMessageFilter::SyncReturnTemporaryFile(
if (file.IsValid()) {
NaClHostMsg_NaClCreateTemporaryFile::WriteReplyParams(
reply_msg,
- IPC::TakeFileHandleForProcess(file.Pass(), PeerHandle()));
+ IPC::TakeFileHandleForProcess(std::move(file), PeerHandle()));
} else {
reply_msg->set_reply_error();
}
« no previous file with comments | « components/nacl/browser/nacl_file_host.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698