| 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 <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 void ShillPropertyHandler::SetCheckPortalList( | 176 void ShillPropertyHandler::SetCheckPortalList( |
| 177 const std::string& check_portal_list) { | 177 const std::string& check_portal_list) { |
| 178 base::StringValue value(check_portal_list); | 178 base::StringValue value(check_portal_list); |
| 179 shill_manager_->SetProperty( | 179 shill_manager_->SetProperty( |
| 180 shill::kCheckPortalListProperty, | 180 shill::kCheckPortalListProperty, |
| 181 value, | 181 value, |
| 182 base::Bind(&base::DoNothing), | 182 base::Bind(&base::DoNothing), |
| 183 base::Bind(&network_handler::ShillErrorCallbackFunction, | 183 base::Bind(&network_handler::ShillErrorCallbackFunction, |
| 184 "SetCheckPortalList Failed", | 184 "SetCheckPortalList Failed", |
| 185 "", network_handler::ErrorCallback())); | 185 "Manager", |
| 186 network_handler::ErrorCallback())); |
| 187 } |
| 188 |
| 189 void ShillPropertyHandler::SetWakeOnLanEnabled(bool enabled) { |
| 190 base::FundamentalValue value(enabled); |
| 191 shill_manager_->SetProperty( |
| 192 shill::kWakeOnLanEnabledProperty, |
| 193 value, |
| 194 base::Bind(&base::DoNothing), |
| 195 base::Bind(&network_handler::ShillErrorCallbackFunction, |
| 196 "SetWakeOnLanEnabled Failed", |
| 197 "Manager", |
| 198 network_handler::ErrorCallback())); |
| 186 } | 199 } |
| 187 | 200 |
| 188 void ShillPropertyHandler::RequestScan() const { | 201 void ShillPropertyHandler::RequestScan() const { |
| 189 shill_manager_->RequestScan( | 202 shill_manager_->RequestScan( |
| 190 "", | 203 "", |
| 191 base::Bind(&base::DoNothing), | 204 base::Bind(&base::DoNothing), |
| 192 base::Bind(&network_handler::ShillErrorCallbackFunction, | 205 base::Bind(&network_handler::ShillErrorCallbackFunction, |
| 193 "RequestScan Failed", | 206 "RequestScan Failed", |
| 194 "", network_handler::ErrorCallback())); | 207 "", network_handler::ErrorCallback())); |
| 195 } | 208 } |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 base::StringPrintf("Failed to get IP Config properties: %s: %d", | 539 base::StringPrintf("Failed to get IP Config properties: %s: %d", |
| 527 ip_config_path.c_str(), call_status), path); | 540 ip_config_path.c_str(), call_status), path); |
| 528 return; | 541 return; |
| 529 } | 542 } |
| 530 NET_LOG_EVENT("IP Config properties received", path); | 543 NET_LOG_EVENT("IP Config properties received", path); |
| 531 listener_->UpdateIPConfigProperties(type, path, ip_config_path, properties); | 544 listener_->UpdateIPConfigProperties(type, path, ip_config_path, properties); |
| 532 } | 545 } |
| 533 | 546 |
| 534 } // namespace internal | 547 } // namespace internal |
| 535 } // namespace chromeos | 548 } // namespace chromeos |
| OLD | NEW |