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

Unified Diff: sync/internal_api/public/attachments/task_queue.h

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: sync/internal_api/public/attachments/task_queue.h
diff --git a/sync/internal_api/public/attachments/task_queue.h b/sync/internal_api/public/attachments/task_queue.h
index c46ce85f09a8152fd7d1c332ebf06b089dd7a3fe..2e2a5b99c1776567457d57b522c1a6c12e3d4baf 100644
--- a/sync/internal_api/public/attachments/task_queue.h
+++ b/sync/internal_api/public/attachments/task_queue.h
@@ -7,6 +7,7 @@
#include <deque>
#include <set>
+#include <utility>
#include "base/bind.h"
#include "base/callback.h"
@@ -233,7 +234,7 @@ template <typename T>
void TaskQueue<T>::SetTimerForTest(scoped_ptr<base::Timer> timer) {
DCHECK(CalledOnValidThread());
DCHECK(timer.get());
- backoff_timer_ = timer.Pass();
+ backoff_timer_ = std::move(timer);
}
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698