summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/cros/network_library.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/cros/network_library.cc')
-rw-r--r--chrome/browser/chromeos/cros/network_library.cc20
1 files changed, 3 insertions, 17 deletions
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc
index f2f4a8c..4da8fc6 100644
--- a/chrome/browser/chromeos/cros/network_library.cc
+++ b/chrome/browser/chromeos/cros/network_library.cc
@@ -845,8 +845,7 @@ CellularNetwork::CellularNetwork(const std::string& service_path)
activation_state_(ACTIVATION_STATE_UNKNOWN),
network_technology_(NETWORK_TECHNOLOGY_UNKNOWN),
roaming_state_(ROAMING_STATE_UNKNOWN),
- using_post_(false),
- data_left_(DATA_UNKNOWN) {
+ using_post_(false) {
}
CellularNetwork::~CellularNetwork() {
@@ -864,13 +863,6 @@ bool CellularNetwork::StartActivation() {
return true;
}
-void CellularNetwork::RefreshDataPlansIfNeeded() const {
- if (!EnsureCrosLoaded())
- return;
- if (connected() && activated())
- CrosRequestCellularDataPlanUpdate(service_path());
-}
-
void CellularNetwork::SetApn(const CellularApn& apn) {
if (!apn.apn.empty()) {
DictionaryValue value;
@@ -887,18 +879,12 @@ void CellularNetwork::SetApn(const CellularApn& apn) {
}
bool CellularNetwork::SupportsActivation() const {
- return SupportsDataPlan();
+ return !usage_url().empty() || !payment_url().empty();
}
bool CellularNetwork::NeedsActivation() const {
return (activation_state() != ACTIVATION_STATE_ACTIVATED &&
- activation_state() != ACTIVATION_STATE_UNKNOWN) ||
- needs_new_plan();
-}
-
-bool CellularNetwork::SupportsDataPlan() const {
- // TODO(nkostylev): Are there cases when only one of this is defined?
- return !usage_url().empty() || !payment_url().empty();
+ activation_state() != ACTIVATION_STATE_UNKNOWN);
}
GURL CellularNetwork::GetAccountInfoUrl() const {