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

Unified Diff: content/renderer/renderer_main.cc

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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/gpu/gpu_main.cc ('k') | device/bluetooth/bluetooth_l2cap_channel_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_main.cc
diff --git a/content/renderer/renderer_main.cc b/content/renderer/renderer_main.cc
index 1847018babbbd475dea7d20a93991c8095af2784..94f105c0f01a441543390a202437aaf304d3e053 100644
--- a/content/renderer/renderer_main.cc
+++ b/content/renderer/renderer_main.cc
@@ -147,7 +147,7 @@ int RendererMain(const MainFunctionParams& parameters) {
// http://crbug.com/306348#c24 for details.
scoped_ptr<base::MessagePump> pump(new base::MessagePumpNSRunLoop());
scoped_ptr<base::MessageLoop> main_message_loop(
- new base::MessageLoop(pump.Pass()));
+ new base::MessageLoop(std::move(pump)));
#else
// The main message loop of the renderer services doesn't have IO or UI tasks.
scoped_ptr<base::MessageLoop> main_message_loop(new base::MessageLoop());
@@ -206,8 +206,8 @@ int RendererMain(const MainFunctionParams& parameters) {
// TODO(markus): Check if it is OK to unconditionally move this
// instruction down.
RenderProcessImpl render_process;
- RenderThreadImpl::Create(main_message_loop.Pass(),
- renderer_scheduler.Pass());
+ RenderThreadImpl::Create(std::move(main_message_loop),
+ std::move(renderer_scheduler));
#endif
bool run_loop = true;
if (!no_sandbox)
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | device/bluetooth/bluetooth_l2cap_channel_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698