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

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

Issue 2229383003: chromeos: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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
« no previous file with comments | « chromeos/network/policy_applicator.cc ('k') | chromeos/settings/timezone_settings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 //------------------------------------------------------------------------------ 106 //------------------------------------------------------------------------------
107 // ShillPropertyHandler 107 // ShillPropertyHandler
108 108
109 ShillPropertyHandler::ShillPropertyHandler(Listener* listener) 109 ShillPropertyHandler::ShillPropertyHandler(Listener* listener)
110 : listener_(listener), 110 : listener_(listener),
111 shill_manager_(DBusThreadManager::Get()->GetShillManagerClient()) {} 111 shill_manager_(DBusThreadManager::Get()->GetShillManagerClient()) {}
112 112
113 ShillPropertyHandler::~ShillPropertyHandler() { 113 ShillPropertyHandler::~ShillPropertyHandler() {
114 // Delete network service observers. 114 // Delete network service observers.
115 STLDeleteContainerPairSecondPointers(observed_networks_.begin(), 115 base::STLDeleteContainerPairSecondPointers(observed_networks_.begin(),
116 observed_networks_.end()); 116 observed_networks_.end());
117 STLDeleteContainerPairSecondPointers(observed_devices_.begin(), 117 base::STLDeleteContainerPairSecondPointers(observed_devices_.begin(),
118 observed_devices_.end()); 118 observed_devices_.end());
119 CHECK(shill_manager_ == DBusThreadManager::Get()->GetShillManagerClient()); 119 CHECK(shill_manager_ == DBusThreadManager::Get()->GetShillManagerClient());
120 shill_manager_->RemovePropertyChangedObserver(this); 120 shill_manager_->RemovePropertyChangedObserver(this);
121 } 121 }
122 122
123 void ShillPropertyHandler::Init() { 123 void ShillPropertyHandler::Init() {
124 UpdateManagerProperties(); 124 UpdateManagerProperties();
125 shill_manager_->AddPropertyChangedObserver(this); 125 shill_manager_->AddPropertyChangedObserver(this);
126 } 126 }
127 127
128 void ShillPropertyHandler::UpdateManagerProperties() { 128 void ShillPropertyHandler::UpdateManagerProperties() {
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 NET_LOG(EVENT) << "Failed to get IP Config properties: " << ip_config_path 561 NET_LOG(EVENT) << "Failed to get IP Config properties: " << ip_config_path
562 << ": " << call_status << ", For: " << path; 562 << ": " << call_status << ", For: " << path;
563 return; 563 return;
564 } 564 }
565 NET_LOG(EVENT) << "IP Config properties received: " << path; 565 NET_LOG(EVENT) << "IP Config properties received: " << path;
566 listener_->UpdateIPConfigProperties(type, path, ip_config_path, properties); 566 listener_->UpdateIPConfigProperties(type, path, ip_config_path, properties);
567 } 567 }
568 568
569 } // namespace internal 569 } // namespace internal
570 } // namespace chromeos 570 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/policy_applicator.cc ('k') | chromeos/settings/timezone_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698