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 "chrome/browser/chromeos/cros/network_library_impl_cros.h" | 5 #include "chrome/browser/chromeos/cros/network_library_impl_cros.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/json/json_writer.h" // for debug output only. | 9 #include "base/json/json_writer.h" // for debug output only. |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 const std::string& carrier, | 432 const std::string& carrier, |
433 const NetworkOperationCallback& completed) { | 433 const NetworkOperationCallback& completed) { |
434 const NetworkDevice* cellular = FindCellularDevice(); | 434 const NetworkDevice* cellular = FindCellularDevice(); |
435 if (!cellular) { | 435 if (!cellular) { |
436 NOTREACHED() << "Calling SetCarrier method w/o cellular device."; | 436 NOTREACHED() << "Calling SetCarrier method w/o cellular device."; |
437 return; | 437 return; |
438 } | 438 } |
439 CrosSetCarrier(cellular->device_path(), carrier, completed); | 439 CrosSetCarrier(cellular->device_path(), carrier, completed); |
440 } | 440 } |
441 | 441 |
| 442 void NetworkLibraryImplCros::ResetModem() { |
| 443 const NetworkDevice* cellular = FindCellularDevice(); |
| 444 if (!cellular) { |
| 445 NOTREACHED() << "Calling ResetModem method w/o cellular device."; |
| 446 return; |
| 447 } |
| 448 CrosReset(cellular->device_path()); |
| 449 } |
| 450 |
442 bool NetworkLibraryImplCros::IsCellularAlwaysInRoaming() { | 451 bool NetworkLibraryImplCros::IsCellularAlwaysInRoaming() { |
443 const NetworkDevice* cellular = FindCellularDevice(); | 452 const NetworkDevice* cellular = FindCellularDevice(); |
444 if (!cellular) { | 453 if (!cellular) { |
445 NOTREACHED() << "Calling IsCellularAlwaysInRoaming method " | 454 NOTREACHED() << "Calling IsCellularAlwaysInRoaming method " |
446 "w/o cellular device."; | 455 "w/o cellular device."; |
447 return false; | 456 return false; |
448 } | 457 } |
449 return cellular->provider_requires_roaming(); | 458 return cellular->provider_requires_roaming(); |
450 } | 459 } |
451 | 460 |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 RefreshIPConfig(network); | 1363 RefreshIPConfig(network); |
1355 } | 1364 } |
1356 | 1365 |
1357 // static | 1366 // static |
1358 bool NetworkLibraryImplCros::AreProfilePathsEqual(const NetworkProfile& a, | 1367 bool NetworkLibraryImplCros::AreProfilePathsEqual(const NetworkProfile& a, |
1359 const NetworkProfile& b) { | 1368 const NetworkProfile& b) { |
1360 return a.path == b.path; | 1369 return a.path == b.path; |
1361 } | 1370 } |
1362 | 1371 |
1363 } // namespace chromeos | 1372 } // namespace chromeos |
OLD | NEW |