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

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

Issue 2051663003: base::ListValue::Append cleanup: pass unique_ptr instead of the released pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months 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 99a1ac3f307bd5ee52827d578424fc8f3b83603e..c98ab48dfa5aa35e3453048fd74d0f5940e3d740 100644
--- a/chrome/test/chromedriver/chrome/log.cc
+++ b/chrome/test/chromedriver/chrome/log.cc
@@ -67,7 +67,7 @@ std::unique_ptr<base::Value> SmartDeepCopy(const base::Value* value) {
list_copy->AppendString("...");
break;
}
- list_copy->Append(SmartDeepCopy(child).release());
+ list_copy->Append(SmartDeepCopy(child));
}
return std::move(list_copy);
} else if (value->GetAsString(&data)) {

Powered by Google App Engine
This is Rietveld 408576698