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

Unified Diff: chrome/test/chromedriver/chrome/log.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/test/chromedriver/chrome/log.cc
diff --git a/chrome/test/chromedriver/chrome/log.cc b/chrome/test/chromedriver/chrome/log.cc
index a14e8fc385f0099ccd9c2b7926304559efb24839..c564acbbfa698b7d79e3d53ee7aefd342de1fe5b 100644
--- a/chrome/test/chromedriver/chrome/log.cc
+++ b/chrome/test/chromedriver/chrome/log.cc
@@ -5,6 +5,7 @@
#include "chrome/test/chromedriver/chrome/log.h"
#include <stddef.h>
+#include <utility>
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
@@ -52,7 +53,7 @@ scoped_ptr<base::Value> SmartDeepCopy(const base::Value* value) {
dict_copy->SetWithoutPathExpansion(it.key(),
SmartDeepCopy(child).release());
}
- return dict_copy.Pass();
+ return std::move(dict_copy);
} else if (value->GetAsList(&list)) {
scoped_ptr<base::ListValue> list_copy(new base::ListValue());
for (size_t i = 0; i < list->GetSize(); ++i) {
@@ -65,7 +66,7 @@ scoped_ptr<base::Value> SmartDeepCopy(const base::Value* value) {
}
list_copy->Append(SmartDeepCopy(child).release());
}
- return list_copy.Pass();
+ return std::move(list_copy);
} else if (value->GetAsString(&data)) {
TruncateString(&data);
return scoped_ptr<base::Value>(new base::StringValue(data));

Powered by Google App Engine
This is Rietveld 408576698