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

Unified Diff: sync/sessions/nudge_tracker_unittest.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/sessions/nudge_tracker_unittest.cc
diff --git a/sync/sessions/nudge_tracker_unittest.cc b/sync/sessions/nudge_tracker_unittest.cc
index 43577a325e22b5eed7fce1b8e04bf7df1ea68440..84ca3e69a3d47639ff219a747ebea79894ceee11 100644
--- a/sync/sessions/nudge_tracker_unittest.cc
+++ b/sync/sessions/nudge_tracker_unittest.cc
@@ -5,6 +5,7 @@
#include "sync/sessions/nudge_tracker.h"
#include <string>
+#include <utility>
#include <vector>
#include "base/message_loop/message_loop.h"
@@ -838,7 +839,7 @@ class NudgeTrackerAckTrackingTest : public NudgeTrackerTest {
int id = inv->GetTrackingId();
// Send it to the NudgeTracker.
- nudge_tracker_.RecordRemoteInvalidation(type, inv.Pass());
+ nudge_tracker_.RecordRemoteInvalidation(type, std::move(inv));
// Return its ID to the test framework for use in assertions.
return id;
@@ -851,7 +852,7 @@ class NudgeTrackerAckTrackingTest : public NudgeTrackerTest {
int id = inv->GetTrackingId();
// Send it to the NudgeTracker.
- nudge_tracker_.RecordRemoteInvalidation(type, inv.Pass());
+ nudge_tracker_.RecordRemoteInvalidation(type, std::move(inv));
// Return its ID to the test framework for use in assertions.
return id;

Powered by Google App Engine
This is Rietveld 408576698