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

Unified Diff: sync/internal_api/public/util/proto_value_ptr_unittest.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/internal_api/public/util/proto_value_ptr_unittest.cc
diff --git a/sync/internal_api/public/util/proto_value_ptr_unittest.cc b/sync/internal_api/public/util/proto_value_ptr_unittest.cc
index b47ffa5571a898d4114b5d023598e410f06d80f5..d5223171e24a971898eb112665f4b97ed1879811 100644
--- a/sync/internal_api/public/util/proto_value_ptr_unittest.cc
+++ b/sync/internal_api/public/util/proto_value_ptr_unittest.cc
@@ -4,6 +4,8 @@
#include "sync/internal_api/public/util/proto_value_ptr.h"
+#include <utility>
+
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -70,7 +72,7 @@ class TestValue {
ASSERT_TRUE(src->is_initialized());
ASSERT_FALSE(src->is_default());
// Not exactly swap, but good enough for the test.
- value_ = src->value_.Pass();
+ value_ = std::move(src->value_);
}
void ParseFromArray(const void* blob, int length) {
« no previous file with comments | « sync/internal_api/public/sessions/update_counters.cc ('k') | sync/internal_api/shared_model_type_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698