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

Unified Diff: chromecast/base/serializers.cc

Issue 1553503002: Convert Pass()→std::move() in //chromecast (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
« no previous file with comments | « chromecast/base/device_capabilities_impl_unittest.cc ('k') | chromecast/browser/cast_browser_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/serializers.cc
diff --git a/chromecast/base/serializers.cc b/chromecast/base/serializers.cc
index 2e6135bb17fdc4b7cce15227d38c3d99e3ac5874..87e9dc51cef477a7f7b4fe626ccb246e6e4dbccd 100644
--- a/chromecast/base/serializers.cc
+++ b/chromecast/base/serializers.cc
@@ -20,7 +20,7 @@ scoped_ptr<base::Value> DeserializeFromJson(const std::string& text) {
DLOG_IF(ERROR, !value) << "JSON error " << error_code << ":" << error_msg;
// Value will hold the nullptr in case of an error.
- return value.Pass();
+ return value;
}
scoped_ptr<std::string> SerializeToJson(const base::Value& value) {
@@ -28,7 +28,7 @@ scoped_ptr<std::string> SerializeToJson(const base::Value& value) {
JSONStringValueSerializer serializer(json_str.get());
if (!serializer.Serialize(value))
json_str.reset(nullptr);
- return json_str.Pass();
+ return json_str;
}
scoped_ptr<base::Value> DeserializeJsonFromFile(const base::FilePath& path) {
@@ -41,7 +41,7 @@ scoped_ptr<base::Value> DeserializeJsonFromFile(const base::FilePath& path) {
DLOG_IF(ERROR, !value) << "JSON error " << error_code << ":" << error_msg;
// Value will hold the nullptr in case of an error.
- return value.Pass();
+ return value;
}
bool SerializeJsonToFile(const base::FilePath& path, const base::Value& value) {
« no previous file with comments | « chromecast/base/device_capabilities_impl_unittest.cc ('k') | chromecast/browser/cast_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698