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

Unified Diff: components/wifi_sync/wifi_credential.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: components/wifi_sync/wifi_credential.cc
diff --git a/components/wifi_sync/wifi_credential.cc b/components/wifi_sync/wifi_credential.cc
index e4e9544cb9217a06d5cd35d9212e676f60e82d63..bbbb492f260e30f982bffd7fe86ad97702fc1bf2 100644
--- a/components/wifi_sync/wifi_credential.cc
+++ b/components/wifi_sync/wifi_credential.cc
@@ -50,7 +50,7 @@ std::unique_ptr<base::DictionaryValue> WifiCredential::ToOncProperties() const {
if (!WifiSecurityClassToOncSecurityString(security_class(), &onc_security)) {
NOTREACHED() << "Failed to convert SecurityClass with value "
<< security_class();
- return base::WrapUnique(new base::DictionaryValue());
+ return base::MakeUnique<base::DictionaryValue>();
}
std::unique_ptr<base::DictionaryValue> onc_properties(

Powered by Google App Engine
This is Rietveld 408576698