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

Unified Diff: components/wifi/fake_wifi_service.cc

Issue 2817603003: Remove ListValue::Append(raw ptr) on Mac and iOS (Closed)
Patch Set: Comments 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
« no previous file with comments | « components/policy/core/common/mac_util_unittest.cc ('k') | components/wifi/wifi_service_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi/fake_wifi_service.cc
diff --git a/components/wifi/fake_wifi_service.cc b/components/wifi/fake_wifi_service.cc
index bbf3f8e4f0183810ae9993ce7baad40de2213bf8..e3a46836a0fa72fffa7fecc4fbe0866b1e4b5417 100644
--- a/components/wifi/fake_wifi_service.cc
+++ b/components/wifi/fake_wifi_service.cc
@@ -5,9 +5,11 @@
#include "components/wifi/fake_wifi_service.h"
#include <memory>
+#include <utility>
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
+#include "base/values.h"
#include "components/onc/onc_constants.h"
namespace wifi {
@@ -118,7 +120,7 @@ void FakeWiFiService::GetVisibleNetworks(const std::string& network_type,
it->type == network_type) {
std::unique_ptr<base::DictionaryValue> network(
it->ToValue(!include_details));
- network_list->Append(network.release());
+ network_list->Append(std::move(network));
}
}
}
« no previous file with comments | « components/policy/core/common/mac_util_unittest.cc ('k') | components/wifi/wifi_service_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698