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

Unified Diff: sync/internal_api/public/sessions/sync_session_snapshot.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/internal_api/public/sessions/sync_session_snapshot.cc
diff --git a/sync/internal_api/public/sessions/sync_session_snapshot.cc b/sync/internal_api/public/sessions/sync_session_snapshot.cc
index 9614330db67e4de4ee40587083a6309716ec44d7..2864d6995cefb654b46fe48908e12b58162f7aae 100644
--- a/sync/internal_api/public/sessions/sync_session_snapshot.cc
+++ b/sync/internal_api/public/sessions/sync_session_snapshot.cc
@@ -4,6 +4,8 @@
#include "sync/internal_api/public/sessions/sync_session_snapshot.h"
+#include <utility>
+
#include "base/json/json_writer.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
@@ -98,7 +100,7 @@ scoped_ptr<base::DictionaryValue> SyncSessionSnapshot::ToValue() const {
const std::string model_type = ModelTypeToString(static_cast<ModelType>(i));
counter_entries->Set(model_type, type_entries.release());
}
- value->Set("counter_entries", counter_entries.Pass());
+ value->Set("counter_entries", std::move(counter_entries));
return value;
}

Powered by Google App Engine
This is Rietveld 408576698