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

Unified Diff: chrome/browser/chromeos/policy/device_network_configuration_updater.cc

Issue 2040603002: Add support for MAC address randomization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing debug log Created 4 years, 6 months 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: chrome/browser/chromeos/policy/device_network_configuration_updater.cc
diff --git a/chrome/browser/chromeos/policy/device_network_configuration_updater.cc b/chrome/browser/chromeos/policy/device_network_configuration_updater.cc
index 0bb63b2ea9758f4603c1604e0e3e0a522743931d..2863423c0ac7194a4894af796d4001d577143815 100644
--- a/chrome/browser/chromeos/policy/device_network_configuration_updater.cc
+++ b/chrome/browser/chromeos/policy/device_network_configuration_updater.cc
@@ -72,6 +72,10 @@ void DeviceNetworkConfigurationUpdater::Init() {
// Apply the roaming setting initially.
OnDataRoamingSettingChanged();
}
+
+ // Set up MAC address randomization if we are not enterprise managed.
+ network_device_handler_->SetMACAddressRandomizationEnabled(
+ !connector->IsEnterpriseManaged());
}
void DeviceNetworkConfigurationUpdater::ImportCertificates(
« no previous file with comments | « no previous file | chromeos/network/mock_network_device_handler.h » ('j') | chromeos/network/network_device_handler_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698