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

Unified Diff: remoting/host/single_window_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: 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/single_window_desktop_environment.cc
diff --git a/remoting/host/single_window_desktop_environment.cc b/remoting/host/single_window_desktop_environment.cc
index 15da395237f0b49ff001acf98978773a7fd884d1..b7394f498da34f1c401736b888fe84e9c6b4d9ea 100644
--- a/remoting/host/single_window_desktop_environment.cc
+++ b/remoting/host/single_window_desktop_environment.cc
@@ -48,11 +48,11 @@ SingleWindowDesktopEnvironment::CreateVideoCapturer() {
webrtc::DesktopCaptureOptions::CreateDefault();
options.set_use_update_notifications(true);
- scoped_ptr<webrtc::WindowCapturer>window_capturer(
+ scoped_ptr<webrtc::WindowCapturer> window_capturer(
webrtc::WindowCapturer::Create(options));
window_capturer->SelectWindow(window_id_);
- return window_capturer.Pass();
+ return std::move(window_capturer);
}
scoped_ptr<InputInjector>
@@ -63,7 +63,7 @@ SingleWindowDesktopEnvironment::CreateInputInjector() {
InputInjector::Create(input_task_runner(),
ui_task_runner()));
return SingleWindowInputInjector::CreateForWindow(
- window_id_, input_injector.Pass()).Pass();
+ window_id_, std::move(input_injector));
}
SingleWindowDesktopEnvironment::SingleWindowDesktopEnvironment(
@@ -104,7 +104,7 @@ scoped_ptr<DesktopEnvironment> SingleWindowDesktopEnvironmentFactory::Create(
ui_task_runner(),
window_id_,
supports_touch_events()));
- return desktop_environment.Pass();
+ return std::move(desktop_environment);
}
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698