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

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: 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/remoting_me2me_host.cc ('k') | remoting/host/resizing_host_observer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/resizing_host_observer.cc
diff --git a/remoting/host/resizing_host_observer.cc b/remoting/host/resizing_host_observer.cc
index 31edab97a7cf214395e4d4643290be81ab7ae18a..04129be366ac555b7935ff1ecd76db15825825c9 100644
--- a/remoting/host/resizing_host_observer.cc
+++ b/remoting/host/resizing_host_observer.cc
@@ -7,6 +7,7 @@
#include <stdint.h>
#include <list>
+#include <utility>
#include "base/bind.h"
#include "base/logging.h"
@@ -118,10 +119,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())
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/resizing_host_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698