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

Side by Side Diff: chromeos/network/network_device_handler_impl.h

Issue 2202693005: Don't set MAC address randomization when unsupported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_
6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_ 6 #define CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 void Init(NetworkStateHandler* network_state_handler); 128 void Init(NetworkStateHandler* network_state_handler);
129 129
130 // Apply the current value of |cellular_allow_roaming_| to all existing 130 // Apply the current value of |cellular_allow_roaming_| to all existing
131 // cellular devices of Shill. 131 // cellular devices of Shill.
132 void ApplyCellularAllowRoamingToShill(); 132 void ApplyCellularAllowRoamingToShill();
133 133
134 // Apply the current value of |mac_addr_randomization_| to wifi devices. 134 // Apply the current value of |mac_addr_randomization_| to wifi devices.
135 void ApplyMACAddressRandomizationToShill(); 135 void ApplyMACAddressRandomizationToShill();
136 136
137 void SetMACAddressRandomizationErrorCallback(
138 const std::string& error_name,
139 std::unique_ptr<base::DictionaryValue> error_data);
140
137 // Get the DeviceState for the wifi device, if any. 141 // Get the DeviceState for the wifi device, if any.
138 const DeviceState* GetWifiDeviceState( 142 const DeviceState* GetWifiDeviceState(
139 const network_handler::ErrorCallback& error_callback); 143 const network_handler::ErrorCallback& error_callback);
140 144
141 NetworkStateHandler* network_state_handler_; 145 NetworkStateHandler* network_state_handler_;
142 bool cellular_allow_roaming_; 146 bool cellular_allow_roaming_;
143 bool mac_addr_randomization_; 147 bool mac_addr_randomization_supported_;
148 bool mac_addr_randomization_enabled_;
144 149
145 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandlerImpl); 150 DISALLOW_COPY_AND_ASSIGN(NetworkDeviceHandlerImpl);
146 }; 151 };
147 152
148 } // namespace chromeos 153 } // namespace chromeos
149 154
150 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_ 155 #endif // CHROMEOS_NETWORK_NETWORK_DEVICE_HANDLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/network_device_handler_impl.cc » ('j') | chromeos/network/network_device_handler_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698