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

Unified Diff: components/nacl/renderer/manifest_service_channel.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/renderer/manifest_downloader.cc ('k') | components/nacl/renderer/nexe_load_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/manifest_service_channel.cc
diff --git a/components/nacl/renderer/manifest_service_channel.cc b/components/nacl/renderer/manifest_service_channel.cc
index 249737f7be5bfef513f51d8fea3a73b107964c02..be9ccbe9a53ffdaca89af400a5dade345ab7846c 100644
--- a/components/nacl/renderer/manifest_service_channel.cc
+++ b/components/nacl/renderer/manifest_service_channel.cc
@@ -4,6 +4,8 @@
#include "components/nacl/renderer/manifest_service_channel.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/callback_helpers.h"
@@ -24,7 +26,7 @@ ManifestServiceChannel::ManifestServiceChannel(
scoped_ptr<Delegate> delegate,
base::WaitableEvent* waitable_event)
: connected_callback_(connected_callback),
- delegate_(delegate.Pass()),
+ delegate_(std::move(delegate)),
channel_(IPC::SyncChannel::Create(
handle,
IPC::Channel::MODE_CLIENT,
@@ -33,8 +35,7 @@ ManifestServiceChannel::ManifestServiceChannel(
true,
waitable_event)),
peer_pid_(base::kNullProcessId),
- weak_ptr_factory_(this) {
-}
+ weak_ptr_factory_(this) {}
ManifestServiceChannel::~ManifestServiceChannel() {
if (!connected_callback_.is_null())
@@ -97,7 +98,7 @@ void ManifestServiceChannel::DidOpenResource(IPC::Message* reply,
if (ok)
handle.set_file_handle(file_for_transit, PP_FILEOPENFLAG_READ, 0);
#else
- file_for_transit = base::FileDescriptor(file.Pass());
+ file_for_transit = base::FileDescriptor(std::move(file));
handle.set_file_handle(file_for_transit, PP_FILEOPENFLAG_READ, 0);
#endif
}
« no previous file with comments | « components/nacl/renderer/manifest_downloader.cc ('k') | components/nacl/renderer/nexe_load_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698