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

Unified Diff: sync/engine/sync_scheduler_impl.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up 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/engine/sync_scheduler_impl.cc
diff --git a/sync/engine/sync_scheduler_impl.cc b/sync/engine/sync_scheduler_impl.cc
index 20cdfc18498b680c5f95741917849b4981808269..f12647310ddc11ebe1678c623af69c5cf00f5f9a 100644
--- a/sync/engine/sync_scheduler_impl.cc
+++ b/sync/engine/sync_scheduler_impl.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <cstring>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -421,8 +422,8 @@ void SyncSchedulerImpl::ScheduleInvalidationNudge(
SDVLOG_LOC(nudge_location, 2)
<< "Scheduling sync because we received invalidation for "
<< ModelTypeToString(model_type);
- base::TimeDelta nudge_delay =
- nudge_tracker_.RecordRemoteInvalidation(model_type, invalidation.Pass());
+ base::TimeDelta nudge_delay = nudge_tracker_.RecordRemoteInvalidation(
+ model_type, std::move(invalidation));
ScheduleNudgeImpl(nudge_delay, nudge_location);
}
« no previous file with comments | « sync/engine/model_type_worker_unittest.cc ('k') | sync/internal_api/attachments/attachment_downloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698