Index: chromeos/network/prohibited_technologies_handler.cc |
diff --git a/chromeos/network/prohibited_technologies_handler.cc b/chromeos/network/prohibited_technologies_handler.cc |
index 5d41e31264e163e9a23092a0034b413c6f778c33..97bdec9d2b1612722a3a23f239a568313957c852 100644 |
--- a/chromeos/network/prohibited_technologies_handler.cc |
+++ b/chromeos/network/prohibited_technologies_handler.cc |
@@ -63,9 +63,10 @@ void ProhibitedTechnologiesHandler::SetProhibitedTechnologies( |
// Build up prohibited network type list and save it for furthur use when |
// enforced |
prohibited_technologies_.clear(); |
- for (const base::Value* item : *prohibited_list) { |
+ for (const auto& item : *prohibited_list) { |
std::string prohibited_technology; |
- item->GetAsString(&prohibited_technology); |
+ bool item_is_string = item->GetAsString(&prohibited_technology); |
+ DCHECK(item_is_string); |
std::string translated_tech = |
network_util::TranslateONCTypeToShill(prohibited_technology); |
if (!translated_tech.empty()) |