| 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(); | |
| 285 } | 283 } |
| 286 return notify_manager_changed; | 284 return notify_manager_changed; |
| 287 } | 285 } |
| 288 | 286 |
| 289 void ShillPropertyHandler::UpdateObserved(ManagedState::ManagedType type, | 287 void ShillPropertyHandler::UpdateObserved(ManagedState::ManagedType type, |
| 290 const base::ListValue& entries) { | 288 const base::ListValue& entries) { |
| 291 ShillPropertyObserverMap& observer_map = | 289 ShillPropertyObserverMap& observer_map = |
| 292 (type == ManagedState::MANAGED_TYPE_NETWORK) | 290 (type == ManagedState::MANAGED_TYPE_NETWORK) |
| 293 ? observed_networks_ : observed_devices_; | 291 ? observed_networks_ : observed_devices_; |
| 294 ShillPropertyObserverMap new_observed; | 292 ShillPropertyObserverMap new_observed; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 463 |
| 466 void ShillPropertyHandler::NetworkDevicePropertyChangedCallback( | 464 void ShillPropertyHandler::NetworkDevicePropertyChangedCallback( |
| 467 const std::string& path, | 465 const std::string& path, |
| 468 const std::string& key, | 466 const std::string& key, |
| 469 const base::Value& value) { | 467 const base::Value& value) { |
| 470 listener_->UpdateDeviceProperty(path, key, value); | 468 listener_->UpdateDeviceProperty(path, key, value); |
| 471 } | 469 } |
| 472 | 470 |
| 473 } // namespace internal | 471 } // namespace internal |
| 474 } // namespace chromeos | 472 } // namespace chromeos |
| OLD | NEW |