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

Side by Side Diff: chromeos/network/shill_property_handler.cc

Issue 13937009: Re-request network state after login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/network/shill_property_handler.h ('k') | chromeos/network/shill_property_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698