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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/utils.cc

Issue 2030013003: Remove ListValue::Append(new {Fundamental,String}Value(...)) pattern in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/browser/extensions/api/bluetooth_low_energy/utils.cc
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/utils.cc b/chrome/browser/extensions/api/bluetooth_low_energy/utils.cc
index a3143f2cd3c4774fcb9fb149934143d29565c2d6..61befe6ed9f0219539fe22953662e969cc6e486f 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/utils.cc
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/utils.cc
@@ -24,7 +24,7 @@ std::unique_ptr<base::ListValue> CharacteristicPropertiesToValue(
properties.begin();
iter != properties.end();
++iter)
- property_list->Append(new base::StringValue(ToString(*iter)));
+ property_list->AppendString(ToString(*iter));
return property_list;
}

Powered by Google App Engine
This is Rietveld 408576698