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

Unified Diff: remoting/host/resizing_host_observer.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/resizing_host_observer.cc
diff --git a/remoting/host/resizing_host_observer.cc b/remoting/host/resizing_host_observer.cc
index 60a9046ab3f7fb39eb656cc7a33672e90796b352..a9299886b521ce5e4f20789eab21c7cf86cfe38d 100644
--- a/remoting/host/resizing_host_observer.cc
+++ b/remoting/host/resizing_host_observer.cc
@@ -116,10 +116,9 @@ class CandidateResolution {
ResizingHostObserver::ResizingHostObserver(
scoped_ptr<DesktopResizer> desktop_resizer)
- : desktop_resizer_(desktop_resizer.Pass()),
+ : desktop_resizer_(std::move(desktop_resizer)),
now_function_(base::Bind(base::Time::Now)),
- weak_factory_(this) {
-}
+ weak_factory_(this) {}
ResizingHostObserver::~ResizingHostObserver() {
if (!original_resolution_.IsEmpty())

Powered by Google App Engine
This is Rietveld 408576698