| 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/cros_network_functions.h" | 5 #include "chromeos/network/cros_network_functions.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 311 |
| 312 } // namespace | 312 } // namespace |
| 313 | 313 |
| 314 bool CrosActivateCellularModem(const std::string& service_path, | 314 bool CrosActivateCellularModem(const std::string& service_path, |
| 315 const std::string& carrier) { | 315 const std::string& carrier) { |
| 316 return DBusThreadManager::Get()->GetShillServiceClient()-> | 316 return DBusThreadManager::Get()->GetShillServiceClient()-> |
| 317 CallActivateCellularModemAndBlock(dbus::ObjectPath(service_path), | 317 CallActivateCellularModemAndBlock(dbus::ObjectPath(service_path), |
| 318 carrier); | 318 carrier); |
| 319 } | 319 } |
| 320 | 320 |
| 321 void CrosCompleteCellularActivation(const std::string& service_path) { |
| 322 return DBusThreadManager::Get()->GetShillServiceClient()-> |
| 323 CompleteCellularActivation(dbus::ObjectPath(service_path), |
| 324 base::Bind(&DoNothing), |
| 325 base::Bind(&IgnoreErrors)); |
| 326 } |
| 327 |
| 321 void CrosSetNetworkServiceProperty(const std::string& service_path, | 328 void CrosSetNetworkServiceProperty(const std::string& service_path, |
| 322 const std::string& property, | 329 const std::string& property, |
| 323 const base::Value& value) { | 330 const base::Value& value) { |
| 324 DBusThreadManager::Get()->GetShillServiceClient()->SetProperty( | 331 DBusThreadManager::Get()->GetShillServiceClient()->SetProperty( |
| 325 dbus::ObjectPath(service_path), property, value, | 332 dbus::ObjectPath(service_path), property, value, |
| 326 base::Bind(&DoNothing), | 333 base::Bind(&DoNothing), |
| 327 base::Bind(&IgnoreErrors)); | 334 base::Bind(&IgnoreErrors)); |
| 328 } | 335 } |
| 329 | 336 |
| 330 void CrosClearNetworkServiceProperty(const std::string& service_path, | 337 void CrosClearNetworkServiceProperty(const std::string& service_path, |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 | 678 |
| 672 // Resets the device. | 679 // Resets the device. |
| 673 void CrosReset(const std::string& device_path) { | 680 void CrosReset(const std::string& device_path) { |
| 674 DBusThreadManager::Get()->GetShillDeviceClient()->Reset( | 681 DBusThreadManager::Get()->GetShillDeviceClient()->Reset( |
| 675 dbus::ObjectPath(device_path), | 682 dbus::ObjectPath(device_path), |
| 676 base::Bind(&DoNothing), | 683 base::Bind(&DoNothing), |
| 677 base::Bind(&IgnoreErrors)); | 684 base::Bind(&IgnoreErrors)); |
| 678 } | 685 } |
| 679 | 686 |
| 680 } // namespace chromeos | 687 } // namespace chromeos |
| OLD | NEW |