Chromium Code Reviews| Index: chrome/browser/chromeos/cros/native_network_parser.cc |
| diff --git a/chrome/browser/chromeos/cros/native_network_parser.cc b/chrome/browser/chromeos/cros/native_network_parser.cc |
| index 31720250ea9fbbe3c87c1ac519809028a95d30e1..88ce2ce04b1239af6295c1684c54fb5514e36b75 100644 |
| --- a/chrome/browser/chromeos/cros/native_network_parser.cc |
| +++ b/chrome/browser/chromeos/cros/native_network_parser.cc |
| @@ -194,7 +194,7 @@ bool NativeNetworkDeviceParser::ParseValue( |
| return true; |
| } |
| case PROPERTY_INDEX_CELLULAR_APN_LIST: |
| - if (value.IsType(Value::TYPE_LIST)) { |
| + if (value.AsList()) { |
| CellularApnList provider_apn_list; |
| if (!ParseApnList(static_cast<const ListValue&>(value), |
| &provider_apn_list)) |
| @@ -204,13 +204,13 @@ bool NativeNetworkDeviceParser::ParseValue( |
| } |
| break; |
| case PROPERTY_INDEX_NETWORKS: |
| - if (value.IsType(Value::TYPE_LIST)) { |
| + if (value.AsList()) { |
| // Ignored. |
| return true; |
| } |
| break; |
| case PROPERTY_INDEX_FOUND_NETWORKS: |
| - if (value.IsType(Value::TYPE_LIST)) { |
| + if (value.AsList()) { |
| CellularNetworkList found_cellular_networks; |
| if (!ParseFoundNetworksFromList( |
| static_cast<const ListValue&>(value), |
|
Evan Martin
2011/08/23 18:15:26
We can remove the casts in this file with somethin
tfarina
2011/08/23 18:26:36
Done.
|