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

Unified Diff: content/child/child_thread_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
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/child/child_thread_impl_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 5a2c5c3713464ae3bf3fbb72e506257ea6f57ac2..3c6d86986676cda0c8d18b19b19283bb05fa3c27 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -5,8 +5,8 @@
#include "content/child/child_thread_impl.h"
#include <signal.h>
-
#include <string>
+#include <utility>
#include "base/base_switches.h"
#include "base/command_line.h"
@@ -470,8 +470,8 @@ void ChildThreadImpl::Init(const Options& options) {
new PowerMonitorBroadcastSource());
channel_->AddFilter(power_monitor_source->GetMessageFilter());
- power_monitor_.reset(new base::PowerMonitor(
- power_monitor_source.Pass()));
+ power_monitor_.reset(
+ new base::PowerMonitor(std::move(power_monitor_source)));
}
#if defined(OS_POSIX)
@@ -726,7 +726,7 @@ void ChildThreadImpl::OnBindExternalMojoShellHandle(
mojo::ScopedMessagePipeHandle message_pipe =
mojo_shell_channel_init_.Init(handle, GetIOTaskRunner());
DCHECK(message_pipe.is_valid());
- MojoShellConnectionImpl::Get()->BindToMessagePipe(message_pipe.Pass());
+ MojoShellConnectionImpl::Get()->BindToMessagePipe(std::move(message_pipe));
#endif // defined(MOJO_SHELL_CLIENT)
}
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/child/child_thread_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698