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

Unified Diff: remoting/host/backoff_timer.h

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/backoff_timer.h
diff --git a/remoting/host/backoff_timer.h b/remoting/host/backoff_timer.h
index 2750ebdda03800a67b339e2c59b5b15d06aee91e..474afcce38b6a99e61b1d5733a7b55e7525ee1fc 100644
--- a/remoting/host/backoff_timer.h
+++ b/remoting/host/backoff_timer.h
@@ -32,7 +32,9 @@ class BackoffTimer {
// Returns true if the user task may be invoked in the future.
bool IsRunning() const { return backoff_entry_; }
- void SetTimerForTest(scoped_ptr<base::Timer> timer) { timer_ = timer.Pass(); }
+ void SetTimerForTest(scoped_ptr<base::Timer> timer) {
+ timer_ = std::move(timer);
+ }
private:
void StartTimer();

Powered by Google App Engine
This is Rietveld 408576698