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

Unified Diff: components/wifi/fake_wifi_service.cc

Issue 1917673002: Convert //components/[u-z]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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/wifi/fake_wifi_service.h ('k') | components/wifi/network_properties.h » ('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 19e63ee6ef1f81709f8a65847faeba8e7bb67431..bbf3f8e4f0183810ae9993ce7baad40de2213bf8 100644
--- a/components/wifi/fake_wifi_service.cc
+++ b/components/wifi/fake_wifi_service.cc
@@ -4,6 +4,8 @@
#include "components/wifi/fake_wifi_service.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "components/onc/onc_constants.h"
@@ -82,7 +84,7 @@ void FakeWiFiService::GetState(const std::string& network_guid,
void FakeWiFiService::SetProperties(
const std::string& network_guid,
- scoped_ptr<base::DictionaryValue> properties,
+ std::unique_ptr<base::DictionaryValue> properties,
std::string* error) {
NetworkList::iterator network_properties = FindNetwork(network_guid);
if (network_properties == networks_.end() ||
@@ -93,7 +95,7 @@ void FakeWiFiService::SetProperties(
void FakeWiFiService::CreateNetwork(
bool shared,
- scoped_ptr<base::DictionaryValue> properties,
+ std::unique_ptr<base::DictionaryValue> properties,
std::string* network_guid,
std::string* error) {
NetworkProperties network_properties;
@@ -114,7 +116,8 @@ void FakeWiFiService::GetVisibleNetworks(const std::string& network_type,
++it) {
if (network_type.empty() || network_type == onc::network_type::kAllTypes ||
it->type == network_type) {
- scoped_ptr<base::DictionaryValue> network(it->ToValue(!include_details));
+ std::unique_ptr<base::DictionaryValue> network(
+ it->ToValue(!include_details));
network_list->Append(network.release());
}
}
« no previous file with comments | « components/wifi/fake_wifi_service.h ('k') | components/wifi/network_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698