diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 21:22:02 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 21:22:02 +0000 |
commit | 6f821df6dc2993648ba6c079ab63b6bb938581c6 (patch) | |
tree | 103e6cd2cc743610c784e4d07e5a304b0fdd9a79 /chrome/browser/chromeos/cros/network_library.cc | |
parent | 9e4399ba28d424e557391ccca46d473c18fc6607 (diff) | |
download | chromium_src-6f821df6dc2993648ba6c079ab63b6bb938581c6.zip chromium_src-6f821df6dc2993648ba6c079ab63b6bb938581c6.tar.gz chromium_src-6f821df6dc2993648ba6c079ab63b6bb938581c6.tar.bz2 |
Add NetworkStateHandler::RequestUpdateForNetwork
This also changes the code to signal observers after update requests,
even if nothing changed so that NetworkPropertiesUpdated() will get
signaled after a request.
BUG=240728
R=pneubeck@chromium.org
Review URL: https://codereview.chromium.org/15233002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros/network_library.cc')
-rw-r--r-- | chrome/browser/chromeos/cros/network_library.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc index c453eb7..fcc60d8 100644 --- a/chrome/browser/chromeos/cros/network_library.cc +++ b/chrome/browser/chromeos/cros/network_library.cc @@ -376,6 +376,9 @@ void Network::SetValueProperty(const char* prop, const base::Value& value) { if (!EnsureCrosLoaded()) return; CrosSetNetworkServiceProperty(service_path_, prop, value); + // Ensure NetworkStateHandler properties are up-to-date. + if (NetworkStateHandler::IsInitialized()) + NetworkStateHandler::Get()->RequestUpdateForNetwork(service_path()); } void Network::ClearProperty(const char* prop) { @@ -383,6 +386,9 @@ void Network::ClearProperty(const char* prop) { if (!EnsureCrosLoaded()) return; CrosClearNetworkServiceProperty(service_path_, prop); + // Ensure NetworkStateHandler properties are up-to-date. + if (NetworkStateHandler::IsInitialized()) + NetworkStateHandler::Get()->RequestUpdateForNetwork(service_path()); } void Network::SetStringProperty( |