diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-18 18:36:36 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-18 18:36:36 +0000 |
commit | ab5c42b002a425649c3448096c95f5bbbc40e2dc (patch) | |
tree | 4dfd9b4037c4ff4c3c2a50e4d019c16460fa7144 /chromeos/dbus/shill_manager_client_stub.cc | |
parent | 5a7f03ad0451a40ea80e4c0373fdbdc310e3ea0f (diff) | |
download | chromium_src-ab5c42b002a425649c3448096c95f5bbbc40e2dc.zip chromium_src-ab5c42b002a425649c3448096c95f5bbbc40e2dc.tar.gz chromium_src-ab5c42b002a425649c3448096c95f5bbbc40e2dc.tar.bz2 |
Correctly set technology state to UNAVAILABLE
BUG=232417
Review URL: https://codereview.chromium.org/13845023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194975 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_manager_client_stub.cc')
-rw-r--r-- | chromeos/dbus/shill_manager_client_stub.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chromeos/dbus/shill_manager_client_stub.cc b/chromeos/dbus/shill_manager_client_stub.cc index 35e8e25..9350076 100644 --- a/chromeos/dbus/shill_manager_client_stub.cc +++ b/chromeos/dbus/shill_manager_client_stub.cc @@ -385,6 +385,23 @@ void ShillManagerClientStub::RemoveTechnology(const std::string& type) { } } +void ShillManagerClientStub::SetTechnologyInitializing(const std::string& type, + bool initializing) { + if (initializing) { + if (GetListProperty(shill::kUninitializedTechnologiesProperty)-> + AppendIfNotPresent(base::Value::CreateStringValue(type))) { + CallNotifyObserversPropertyChanged( + shill::kUninitializedTechnologiesProperty, 0); + } + } else { + if (GetListProperty(shill::kUninitializedTechnologiesProperty)->Remove( + base::StringValue(type), NULL)) { + CallNotifyObserversPropertyChanged( + shill::kUninitializedTechnologiesProperty, 0); + } + } +} + void ShillManagerClientStub::ClearProperties() { stub_properties_.Clear(); } |