Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4618)

Unified Diff: chrome/browser/chromeos/cros/network_library.cc

Issue 9690021: chromeos: Refactor some network related code in preparation for the uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.h ('k') | chrome/browser/chromeos/status/network_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.h ('k') | chrome/browser/chromeos/status/network_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698