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

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

Issue 108603005: Update uses of Value in chromeos/, cloud_print/, components/, content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 if (vlist) { 292 if (vlist) {
293 listener_->UpdateManagedList(ManagedState::MANAGED_TYPE_NETWORK, *vlist); 293 listener_->UpdateManagedList(ManagedState::MANAGED_TYPE_NETWORK, *vlist);
294 UpdateProperties(ManagedState::MANAGED_TYPE_NETWORK, *vlist); 294 UpdateProperties(ManagedState::MANAGED_TYPE_NETWORK, *vlist);
295 // UpdateObserved used to use kServiceWatchListProperty for TYPE_NETWORK, 295 // UpdateObserved used to use kServiceWatchListProperty for TYPE_NETWORK,
296 // however that prevents us from receiving Strength updates from inactive 296 // however that prevents us from receiving Strength updates from inactive
297 // networks. The overhead for observing all services is not unreasonable 297 // networks. The overhead for observing all services is not unreasonable
298 // (and we limit the max number of observed services to kMaxObserved). 298 // (and we limit the max number of observed services to kMaxObserved).
299 UpdateObserved(ManagedState::MANAGED_TYPE_NETWORK, *vlist); 299 UpdateObserved(ManagedState::MANAGED_TYPE_NETWORK, *vlist);
300 } 300 }
301 } else if (key == shill::kServiceCompleteListProperty) { 301 } else if (key == shill::kServiceCompleteListProperty) {
302 const ListValue* vlist = GetListValue(key, value); 302 const base::ListValue* vlist = GetListValue(key, value);
303 if (vlist) { 303 if (vlist) {
304 listener_->UpdateManagedList(ManagedState::MANAGED_TYPE_FAVORITE, *vlist); 304 listener_->UpdateManagedList(ManagedState::MANAGED_TYPE_FAVORITE, *vlist);
305 UpdateProperties(ManagedState::MANAGED_TYPE_FAVORITE, *vlist); 305 UpdateProperties(ManagedState::MANAGED_TYPE_FAVORITE, *vlist);
306 } 306 }
307 } else if (key == shill::kDevicesProperty) { 307 } else if (key == shill::kDevicesProperty) {
308 const base::ListValue* vlist = GetListValue(key, value); 308 const base::ListValue* vlist = GetListValue(key, value);
309 if (vlist) { 309 if (vlist) {
310 listener_->UpdateManagedList(ManagedState::MANAGED_TYPE_DEVICE, *vlist); 310 listener_->UpdateManagedList(ManagedState::MANAGED_TYPE_DEVICE, *vlist);
311 UpdateProperties(ManagedState::MANAGED_TYPE_DEVICE, *vlist); 311 UpdateProperties(ManagedState::MANAGED_TYPE_DEVICE, *vlist);
312 UpdateObserved(ManagedState::MANAGED_TYPE_DEVICE, *vlist); 312 UpdateObserved(ManagedState::MANAGED_TYPE_DEVICE, *vlist);
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 572
573 void ShillPropertyHandler::NetworkDevicePropertyChangedCallback( 573 void ShillPropertyHandler::NetworkDevicePropertyChangedCallback(
574 const std::string& path, 574 const std::string& path,
575 const std::string& key, 575 const std::string& key,
576 const base::Value& value) { 576 const base::Value& value) {
577 listener_->UpdateDeviceProperty(path, key, value); 577 listener_->UpdateDeviceProperty(path, key, value);
578 } 578 }
579 579
580 } // namespace internal 580 } // namespace internal
581 } // namespace chromeos 581 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_translator_shill_to_onc.cc ('k') | cloud_print/gcp20/prototype/cloud_print_requester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698