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

Unified Diff: components/wifi/fake_wifi_service.cc

Issue 2817603003: Remove ListValue::Append(raw ptr) on Mac and iOS (Closed)
Patch Set: Fix even more Mac 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/fake_wifi_service.cc
diff --git a/components/wifi/fake_wifi_service.cc b/components/wifi/fake_wifi_service.cc
index bbf3f8e4f0183810ae9993ce7baad40de2213bf8..d19a4fe3e257686159a4c6975e0e925130515e7a 100644
--- a/components/wifi/fake_wifi_service.cc
+++ b/components/wifi/fake_wifi_service.cc
@@ -5,6 +5,7 @@
#include "components/wifi/fake_wifi_service.h"
#include <memory>
+#include <utility>
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
jdoerrie 2017/04/12 12:37:46 #include "base/values.h"
vabr (Chromium) 2017/04/12 12:55:03 Done.
@@ -118,7 +119,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));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698