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

Unified Diff: remoting/host/me2me_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
« no previous file with comments | « remoting/host/linux/audio_pipe_reader.cc ('k') | remoting/host/mouse_shape_pump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/me2me_desktop_environment.cc
diff --git a/remoting/host/me2me_desktop_environment.cc b/remoting/host/me2me_desktop_environment.cc
index d9663eb2fc7bf458e1b066c49de3b3cc2821aedc..6ca6e50c45cd4cc3917eaa8af287a0da187f0fad 100644
--- a/remoting/host/me2me_desktop_environment.cc
+++ b/remoting/host/me2me_desktop_environment.cc
@@ -4,6 +4,8 @@
#include "remoting/host/me2me_desktop_environment.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
@@ -117,9 +119,7 @@ bool Me2MeDesktopEnvironment::InitializeSecurity(
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);
}
@@ -158,7 +158,7 @@ scoped_ptr<DesktopEnvironment> Me2MeDesktopEnvironmentFactory::Create(
}
desktop_environment->SetEnableGnubbyAuth(gnubby_auth_enabled_);
- return desktop_environment.Pass();
+ return std::move(desktop_environment);
}
void Me2MeDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {
« no previous file with comments | « remoting/host/linux/audio_pipe_reader.cc ('k') | remoting/host/mouse_shape_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698