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

Side by Side Diff: remoting/host/desktop_process_main.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file implements the Windows service controlling Me2Me host processes 5 // This file implements the Windows service controlling Me2Me host processes
6 // running within user sessions. 6 // running within user sessions.
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ui_task_runner, 56 ui_task_runner,
57 base::Bind(&DesktopProcess::InjectSas, 57 base::Bind(&DesktopProcess::InjectSas,
58 desktop_process.AsWeakPtr()))); 58 desktop_process.AsWeakPtr())));
59 #else // !defined(OS_WIN) 59 #else // !defined(OS_WIN)
60 desktop_environment_factory.reset(new Me2MeDesktopEnvironmentFactory( 60 desktop_environment_factory.reset(new Me2MeDesktopEnvironmentFactory(
61 ui_task_runner, 61 ui_task_runner,
62 input_task_runner, 62 input_task_runner,
63 ui_task_runner)); 63 ui_task_runner));
64 #endif // !defined(OS_WIN) 64 #endif // !defined(OS_WIN)
65 65
66 if (!desktop_process.Start(desktop_environment_factory.Pass())) 66 if (!desktop_process.Start(std::move(desktop_environment_factory)))
67 return kInitializationFailed; 67 return kInitializationFailed;
68 68
69 // Run the UI message loop. 69 // Run the UI message loop.
70 ui_task_runner = nullptr; 70 ui_task_runner = nullptr;
71 run_loop.Run(); 71 run_loop.Run();
72 72
73 return kSuccessExitCode; 73 return kSuccessExitCode;
74 } 74 }
75 75
76 } // namespace remoting 76 } // namespace remoting
77 77
78 #if !defined(OS_WIN) 78 #if !defined(OS_WIN)
79 int main(int argc, char** argv) { 79 int main(int argc, char** argv) {
80 return remoting::HostMain(argc, argv); 80 return remoting::HostMain(argc, argv);
81 } 81 }
82 #endif // !defined(OS_WIN) 82 #endif // !defined(OS_WIN)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698