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

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 Created 6 years, 7 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
« no previous file with comments | « chromeos/network/network_state_handler.h ('k') | chromeos/network/onc/onc_signature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1f061974199c01bbe503089b8bc4d85385524d23 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::UpdateIPConfigProperties(
+ 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;
« no previous file with comments | « chromeos/network/network_state_handler.h ('k') | chromeos/network/onc/onc_signature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698