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

Unified Diff: components/arc/net/arc_net_host_impl.cc

Issue 2740143002: Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: Comment Updates Created 3 years, 9 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/arc/net/arc_net_host_impl.cc
diff --git a/components/arc/net/arc_net_host_impl.cc b/components/arc/net/arc_net_host_impl.cc
index b6f497d0b1902e9d9fb5863bf5c1a9ddbbb7af7c..5c48753b5bab5b4a3f3edf0f22b78d91f6d222d4 100644
--- a/components/arc/net/arc_net_host_impl.cc
+++ b/components/arc/net/arc_net_host_impl.cc
@@ -371,8 +371,8 @@ void ArcNetHostImpl::GetNetworks(mojom::GetNetworksRequestType type,
for (const auto& value : *network_properties_list) {
mojom::WifiConfigurationPtr wc = mojom::WifiConfiguration::New();
- base::DictionaryValue* network_dict = nullptr;
- value->GetAsDictionary(&network_dict);
+ const base::DictionaryValue* network_dict = nullptr;
+ value.GetAsDictionary(&network_dict);
DCHECK(network_dict);
// kName is a post-processed version of kHexSSID.
@@ -386,7 +386,7 @@ void ArcNetHostImpl::GetNetworks(mojom::GetNetworksRequestType type,
DCHECK(!tmp.empty());
wc->guid = tmp;
- base::DictionaryValue* wifi_dict = nullptr;
+ const base::DictionaryValue* wifi_dict = nullptr;
network_dict->GetDictionary(onc::network_config::kWiFi, &wifi_dict);
DCHECK(wifi_dict);

Powered by Google App Engine
This is Rietveld 408576698