Index: chrome/browser/chromeos/cros/network_library.cc |
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc |
index 2687140fae21c3cbd38e3e4df25b449ddd4ac274..c43f6722b4f1e9cd61c6e38289a9e62277181b4d 100644 |
--- a/chrome/browser/chromeos/cros/network_library.cc |
+++ b/chrome/browser/chromeos/cros/network_library.cc |
@@ -1259,6 +1259,12 @@ bool CellularNetwork::SupportsActivation() const { |
return SupportsDataPlan(); |
} |
+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(); |