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

Unified Diff: remoting/host/it2me_desktop_environment.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: include <utility> 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
Index: remoting/host/it2me_desktop_environment.cc
diff --git a/remoting/host/it2me_desktop_environment.cc b/remoting/host/it2me_desktop_environment.cc
index 57bb5a5ba50d6fac21661babbb8899e61009ad3b..511f4cc12e33331434cb62122427b643f11de455 100644
--- a/remoting/host/it2me_desktop_environment.cc
+++ b/remoting/host/it2me_desktop_environment.cc
@@ -4,6 +4,8 @@
#include "remoting/host/it2me_desktop_environment.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
@@ -58,16 +60,12 @@ It2MeDesktopEnvironment::It2MeDesktopEnvironment(
if (want_user_interface) {
continue_window_ = HostWindow::CreateContinueWindow();
continue_window_.reset(new HostWindowProxy(
- caller_task_runner,
- ui_task_runner,
- continue_window_.Pass()));
+ caller_task_runner, ui_task_runner, std::move(continue_window_)));
continue_window_->Start(client_session_control);
disconnect_window_ = HostWindow::CreateDisconnectWindow();
disconnect_window_.reset(new HostWindowProxy(
- caller_task_runner,
- ui_task_runner,
- disconnect_window_.Pass()));
+ caller_task_runner, ui_task_runner, std::move(disconnect_window_)));
disconnect_window_->Start(client_session_control);
}
}
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host_unittest.cc ('k') | remoting/host/linux/audio_pipe_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698