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

Unified Diff: chromeos/network/network_state_handler.cc

Issue 267433005: Provide IPConfigs in networkingPrivate.GetProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Elim DHCP ONC types Created 6 years, 8 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: chromeos/network/network_state_handler.cc
diff --git a/chromeos/network/network_state_handler.cc b/chromeos/network/network_state_handler.cc
index c93fc606d40e4856a40b6c33dbcee4a2a787cb4c..a70e5a3b01cc7daf6443999c27112f3a76c3a86f 100644
--- a/chromeos/network/network_state_handler.cc
+++ b/chromeos/network/network_state_handler.cc
@@ -631,6 +631,24 @@ void NetworkStateHandler::UpdateDeviceProperty(const std::string& device_path,
}
}
+void NetworkStateHandler::UpdateIPConfigProperites(
+ ManagedState::ManagedType type,
+ const std::string& path,
+ const std::string& ip_config_path,
+ const base::DictionaryValue& properties) {
+ if (type == ManagedState::MANAGED_TYPE_NETWORK) {
+ NetworkState* network = GetModifiableNetworkState(path);
+ if (!network)
+ return;
+ network->IPConfigPropertiesChanged(properties);
+ } else if (type == ManagedState::MANAGED_TYPE_DEVICE) {
+ DeviceState* device = GetModifiableDeviceState(path);
+ if (!device)
+ return;
+ device->IPConfigPropertiesChanged(ip_config_path, properties);
+ }
+}
+
void NetworkStateHandler::CheckPortalListChanged(
const std::string& check_portal_list) {
check_portal_list_ = check_portal_list;

Powered by Google App Engine
This is Rietveld 408576698