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); |