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

Unified Diff: chromeos/dbus/shill_manager_client_stub.cc

Issue 13845023: Correctly set technology state to UNAVAILABLE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TexchnologyState unit test Created 7 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
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.h ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/shill_manager_client_stub.cc
diff --git a/chromeos/dbus/shill_manager_client_stub.cc b/chromeos/dbus/shill_manager_client_stub.cc
index 35e8e25cc124d2a472fee9aab307e19f6c8745aa..9350076e985409d56454506f1c5fea848573330d 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();
}
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.h ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698