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

Unified Diff: chromeos/network/network_state_handler.cc

Issue 1431563005: Handle prohibited technologies in device policy ONC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: 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);

Powered by Google App Engine
This is Rietveld 408576698