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.h" | 5 #include "chrome/browser/chromeos/cros/network_library.h" |
6 | 6 |
7 #include "base/i18n/icu_encoding_detection.h" | 7 #include "base/i18n/icu_encoding_detection.h" |
8 #include "base/i18n/icu_string_conversions.h" | 8 #include "base/i18n/icu_string_conversions.h" |
9 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
10 #include "base/json/json_writer.h" // for debug output only. | 10 #include "base/json/json_writer.h" // for debug output only. |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 &language)) | 852 &language)) |
853 language.clear(); | 853 language.clear(); |
854 } | 854 } |
855 | 855 |
856 //////////////////////////////////////////////////////////////////////////////// | 856 //////////////////////////////////////////////////////////////////////////////// |
857 // CellularNetwork | 857 // CellularNetwork |
858 | 858 |
859 CellularNetwork::CellularNetwork(const std::string& service_path) | 859 CellularNetwork::CellularNetwork(const std::string& service_path) |
860 : WirelessNetwork(service_path, TYPE_CELLULAR), | 860 : WirelessNetwork(service_path, TYPE_CELLULAR), |
861 activate_over_non_cellular_network_(false), | 861 activate_over_non_cellular_network_(false), |
| 862 out_of_credits_(false), |
862 activation_state_(ACTIVATION_STATE_UNKNOWN), | 863 activation_state_(ACTIVATION_STATE_UNKNOWN), |
863 network_technology_(NETWORK_TECHNOLOGY_UNKNOWN), | 864 network_technology_(NETWORK_TECHNOLOGY_UNKNOWN), |
864 roaming_state_(ROAMING_STATE_UNKNOWN), | 865 roaming_state_(ROAMING_STATE_UNKNOWN), |
865 using_post_(false) { | 866 using_post_(false) { |
866 } | 867 } |
867 | 868 |
868 CellularNetwork::~CellularNetwork() { | 869 CellularNetwork::~CellularNetwork() { |
869 } | 870 } |
870 | 871 |
871 bool CellularNetwork::StartActivation() { | 872 bool CellularNetwork::StartActivation() { |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 NetworkLibrary* impl; | 1373 NetworkLibrary* impl; |
1373 if (stub) | 1374 if (stub) |
1374 impl = new NetworkLibraryImplStub(); | 1375 impl = new NetworkLibraryImplStub(); |
1375 else | 1376 else |
1376 impl = new NetworkLibraryImplCros(); | 1377 impl = new NetworkLibraryImplCros(); |
1377 impl->Init(); | 1378 impl->Init(); |
1378 return impl; | 1379 return impl; |
1379 } | 1380 } |
1380 | 1381 |
1381 } // namespace chromeos | 1382 } // namespace chromeos |
OLD | NEW |