Chromium Code Reviews| Index: chromeos/network/network_state_handler.cc |
| diff --git a/chromeos/network/network_state_handler.cc b/chromeos/network/network_state_handler.cc |
| index e1f18902b2dc193c224172147fc9ced63ea196d0..9bf6a9dd8f1f26d7fdb6dfc6b17925bf3317e808 100644 |
| --- a/chromeos/network/network_state_handler.cc |
| +++ b/chromeos/network/network_state_handler.cc |
| @@ -144,6 +144,18 @@ void NetworkStateHandler::SetTechnologyEnabled( |
| NotifyDeviceListChanged(); |
| } |
| +void NetworkStateHandler::SetProhibitedTechnologies( |
| + const std::vector<std::string>& prohibited_technologies, |
| + const network_handler::ErrorCallback& error_callback) { |
| + std::vector<std::string> technology_list; |
| + for (const std::string& prohibited_technology : prohibited_technologies) |
| + technology_list.push_back(prohibited_technology); |
|
stevenjb
2015/11/11 18:07:31
Why are we copying a vector<string> to a vector<st
fqj
2015/11/12 10:23:01
Done.
|
| + shill_property_handler_->SetProhibitedTechnologies(technology_list, |
| + error_callback); |
| + // Signal Device/Technology state changed. |
| + NotifyDeviceListChanged(); |
| +} |
| + |
| const DeviceState* NetworkStateHandler::GetDeviceState( |
| const std::string& device_path) const { |
| const DeviceState* device = GetModifiableDeviceState(device_path); |