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

Unified Diff: chromeos/network/onc/onc_translator_onc_to_shill.cc

Issue 2255093003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « chromeos/network/network_state_unittest.cc ('k') | chromeos/network/shill_property_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_translator_onc_to_shill.cc
diff --git a/chromeos/network/onc/onc_translator_onc_to_shill.cc b/chromeos/network/onc/onc_translator_onc_to_shill.cc
index 78f5f3feb7899d4ce156fb8479f559edf25ef7b1..606fe322bb78fdf8ffc9017228efe19a005b7c4c 100644
--- a/chromeos/network/onc/onc_translator_onc_to_shill.cc
+++ b/chromeos/network/onc/onc_translator_onc_to_shill.cc
@@ -36,7 +36,7 @@ std::unique_ptr<base::StringValue> ConvertValueToString(
std::string str;
if (!value.GetAsString(&str))
base::JSONWriter::Write(value, &str);
- return base::WrapUnique(new base::StringValue(str));
+ return base::MakeUnique<base::StringValue>(str);
}
// This class is responsible to translate the local fields of the given
« no previous file with comments | « chromeos/network/network_state_unittest.cc ('k') | chromeos/network/shill_property_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698