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

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: 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 4353be0752195af7aee3fe79c3647dfd6b7cd3cb..d008b422018c24fafd5237257633a199af2afad5 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"
@@ -422,8 +423,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);
}

Powered by Google App Engine
This is Rietveld 408576698