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

Unified Diff: chromeos/network/network_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
« no previous file with comments | « chromeos/network/network_handler.h ('k') | chromeos/network/network_profile_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_handler.cc
diff --git a/chromeos/network/network_handler.cc b/chromeos/network/network_handler.cc
index 0ce9ff8c12058f19fcf643b9a3abc209af16f365..b10bad73075eeda942c47f6290e8896256645d7b 100644
--- a/chromeos/network/network_handler.cc
+++ b/chromeos/network/network_handler.cc
@@ -21,6 +21,7 @@
#include "chromeos/network/network_sms_handler.h"
#include "chromeos/network/network_state_handler.h"
#include "chromeos/network/network_state_handler_observer.h"
+#include "chromeos/network/prohibited_technologies_handler.h"
namespace chromeos {
@@ -36,6 +37,7 @@ NetworkHandler::NetworkHandler()
network_configuration_handler_.reset(new NetworkConfigurationHandler());
managed_network_configuration_handler_.reset(
new ManagedNetworkConfigurationHandlerImpl());
+ prohibited_technologies_handler_.reset(new ProhibitedTechnologiesHandler());
if (CertLoader::IsInitialized()) {
auto_connect_handler_.reset(new AutoConnectHandler());
network_cert_migrator_.reset(new NetworkCertMigrator());
@@ -57,10 +59,9 @@ void NetworkHandler::Init() {
network_configuration_handler_->Init(network_state_handler_.get(),
network_device_handler_.get());
managed_network_configuration_handler_->Init(
- network_state_handler_.get(),
- network_profile_handler_.get(),
- network_configuration_handler_.get(),
- network_device_handler_.get());
+ network_state_handler_.get(), network_profile_handler_.get(),
+ network_configuration_handler_.get(), network_device_handler_.get(),
+ prohibited_technologies_handler_.get());
network_connection_handler_->Init(
network_state_handler_.get(),
network_configuration_handler_.get(),
@@ -77,6 +78,9 @@ void NetworkHandler::Init() {
network_state_handler_.get(),
managed_network_configuration_handler_.get());
}
+ prohibited_technologies_handler_->Init(
+ managed_network_configuration_handler_.get(),
+ network_state_handler_.get());
network_sms_handler_->Init();
geolocation_handler_->Init();
}
@@ -144,4 +148,9 @@ GeolocationHandler* NetworkHandler::geolocation_handler() {
return geolocation_handler_.get();
}
+ProhibitedTechnologiesHandler*
+NetworkHandler::prohibited_technologies_handler() {
+ return prohibited_technologies_handler_.get();
+}
+
} // namespace chromeos
« no previous file with comments | « chromeos/network/network_handler.h ('k') | chromeos/network/network_profile_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698