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

Unified Diff: components/wifi/wifi_service_mac.mm

Issue 2884933002: Remove raw base::DictionaryValue::SetWithoutPathExpansion (Closed)
Patch Set: Include Created 3 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
« no previous file with comments | « components/user_manager/user_manager_base.cc ('k') | content/browser/service_manager/merge_dictionary.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi/wifi_service_mac.mm
diff --git a/components/wifi/wifi_service_mac.mm b/components/wifi/wifi_service_mac.mm
index 22490d6480d2219f359760cdb45e76130b9eef79..c1439e2ee73b5792a3c1190b9cb5bcf350bc8bc2 100644
--- a/components/wifi/wifi_service_mac.mm
+++ b/components/wifi/wifi_service_mac.mm
@@ -226,7 +226,7 @@ void WiFiServiceMac::SetProperties(
existing_properties->MergeDictionary(properties.get());
} else {
network_properties_.SetWithoutPathExpansion(network_guid,
- properties.release());
+ std::move(properties));
}
}
@@ -246,8 +246,7 @@ void WiFiServiceMac::CreateNetwork(
*error = kErrorInvalidData;
return;
}
- network_properties_.SetWithoutPathExpansion(guid,
- properties.release());
+ network_properties_.SetWithoutPathExpansion(guid, std::move(properties));
*network_guid = guid;
}
« no previous file with comments | « components/user_manager/user_manager_base.cc ('k') | content/browser/service_manager/merge_dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698