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

Unified Diff: chromeos/network/shill_property_util.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/onc/onc_translator_onc_to_shill.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/shill_property_util.cc
diff --git a/chromeos/network/shill_property_util.cc b/chromeos/network/shill_property_util.cc
index be78677d76c280b60bed6ef6b11c01349ce4422b..7c3690717ef5f7aba4d6a5745536295930307efd 100644
--- a/chromeos/network/shill_property_util.cc
+++ b/chromeos/network/shill_property_util.cc
@@ -197,12 +197,12 @@ std::unique_ptr<NetworkUIData> GetUIDataFromValue(
if (!ui_data_value.GetAsString(&ui_data_str))
return std::unique_ptr<NetworkUIData>();
if (ui_data_str.empty())
- return base::WrapUnique(new NetworkUIData());
+ return base::MakeUnique<NetworkUIData>();
std::unique_ptr<base::DictionaryValue> ui_data_dict(
chromeos::onc::ReadDictionaryFromJson(ui_data_str));
if (!ui_data_dict)
return std::unique_ptr<NetworkUIData>();
- return base::WrapUnique(new NetworkUIData(*ui_data_dict));
+ return base::MakeUnique<NetworkUIData>(*ui_data_dict);
}
std::unique_ptr<NetworkUIData> GetUIDataFromProperties(
« no previous file with comments | « chromeos/network/onc/onc_translator_onc_to_shill.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698