OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/network/shill_property_handler.h" | 5 #include "chromeos/network/shill_property_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 if (vlist) { | 273 if (vlist) { |
274 UpdateEnabledTechnologies(*vlist); | 274 UpdateEnabledTechnologies(*vlist); |
275 notify_manager_changed = true; | 275 notify_manager_changed = true; |
276 } | 276 } |
277 } else if (key == shill::kUninitializedTechnologiesProperty) { | 277 } else if (key == shill::kUninitializedTechnologiesProperty) { |
278 const base::ListValue* vlist = GetListValue(key, value); | 278 const base::ListValue* vlist = GetListValue(key, value); |
279 if (vlist) { | 279 if (vlist) { |
280 UpdateUninitializedTechnologies(*vlist); | 280 UpdateUninitializedTechnologies(*vlist); |
281 notify_manager_changed = true; | 281 notify_manager_changed = true; |
282 } | 282 } |
| 283 } else if (key == flimflam::kProfilesProperty) { |
| 284 listener_->ProfileListChanged(); |
283 } | 285 } |
284 return notify_manager_changed; | 286 return notify_manager_changed; |
285 } | 287 } |
286 | 288 |
287 void ShillPropertyHandler::UpdateObserved(ManagedState::ManagedType type, | 289 void ShillPropertyHandler::UpdateObserved(ManagedState::ManagedType type, |
288 const base::ListValue& entries) { | 290 const base::ListValue& entries) { |
289 ShillPropertyObserverMap& observer_map = | 291 ShillPropertyObserverMap& observer_map = |
290 (type == ManagedState::MANAGED_TYPE_NETWORK) | 292 (type == ManagedState::MANAGED_TYPE_NETWORK) |
291 ? observed_networks_ : observed_devices_; | 293 ? observed_networks_ : observed_devices_; |
292 ShillPropertyObserverMap new_observed; | 294 ShillPropertyObserverMap new_observed; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 465 |
464 void ShillPropertyHandler::NetworkDevicePropertyChangedCallback( | 466 void ShillPropertyHandler::NetworkDevicePropertyChangedCallback( |
465 const std::string& path, | 467 const std::string& path, |
466 const std::string& key, | 468 const std::string& key, |
467 const base::Value& value) { | 469 const base::Value& value) { |
468 listener_->UpdateDeviceProperty(path, key, value); | 470 listener_->UpdateDeviceProperty(path, key, value); |
469 } | 471 } |
470 | 472 |
471 } // namespace internal | 473 } // namespace internal |
472 } // namespace chromeos | 474 } // namespace chromeos |
OLD | NEW |