summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/chromeos/cros/network_library.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc
index 47f96fc..c8e5656 100644
--- a/chrome/browser/chromeos/cros/network_library.cc
+++ b/chrome/browser/chromeos/cros/network_library.cc
@@ -2354,9 +2354,13 @@ class NetworkLibraryImpl : public NetworkLibrary {
virtual const CellularDataPlanVector* GetDataPlans(
const std::string& path) const {
CellularDataPlanMap::const_iterator iter = data_plan_map_.find(path);
- if (iter != data_plan_map_.end())
- return iter->second;
- return NULL;
+ if (iter == data_plan_map_.end())
+ return NULL;
+ // If we need a new plan, then ignore any data plans we have.
+ CellularNetwork* cellular = FindCellularNetworkByPath(path);
+ if (cellular && cellular->needs_new_plan())
+ return NULL;
+ return iter->second;
}
virtual const CellularDataPlan* GetSignificantDataPlan(