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

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: 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 7d1c51553c3f711b0062b70bdd8fce526d083aac..e8ffa540793e93060df310fb8596be9e0c7a80bc 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/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -69,7 +71,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) {

Powered by Google App Engine
This is Rietveld 408576698