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

Unified Diff: components/wifi/wifi_service_win.cc

Issue 2809933003: Remove ListValue::Append(raw ptr) on Win (Closed)
Patch Set: More Win Created 3 years, 8 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/wifi_service_win.cc
diff --git a/components/wifi/wifi_service_win.cc b/components/wifi/wifi_service_win.cc
index 1d5e1617e04445da1063f9ae89d22b5c9d5725e7..e732cb67556b77a32e47c1f2d85b2f6358819724 100644
--- a/components/wifi/wifi_service_win.cc
+++ b/components/wifi/wifi_service_win.cc
@@ -11,6 +11,7 @@
#include <wlanapi.h>
#include <set>
+#include <utility>
jdoerrie 2017/04/13 13:49:49 #include <memory>
vabr (Chromium) 2017/04/13 16:06:48 Done.
#include "base/base_paths_win.h"
#include "base/bind.h"
@@ -581,7 +582,7 @@ void WiFiServiceImpl::SetProperties(
existing_properties->MergeDictionary(properties.get());
} else {
connect_properties_.SetWithoutPathExpansion(network_guid,
- properties.release());
+ std::move(properties));
}
}
@@ -630,7 +631,7 @@ void WiFiServiceImpl::CreateNetwork(
tkip_profile->SetString(kProfileXmlKey, tkip_profile_xml);
tkip_profile->SetBoolean(kProfileSharedKey, shared);
created_profiles_.SetWithoutPathExpansion(network_properties.guid,
- tkip_profile.release());
+ std::move(tkip_profile));
}
*network_guid = network_properties.guid;
@@ -656,7 +657,7 @@ void WiFiServiceImpl::GetVisibleNetworks(const std::string& network_type,
++it) {
std::unique_ptr<base::DictionaryValue> network(
it->ToValue(!include_details));
- network_list->Append(network.release());
+ network_list->Append(std::move(network));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698