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

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

Issue 14044008: Revert 193741 "Re-request network state after login" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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();
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
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
OLDNEW
« no previous file with comments | « trunk/src/chromeos/network/shill_property_handler.h ('k') | trunk/src/chromeos/network/shill_property_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698