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

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

Issue 10201015: [cros] Add network tray item for mobile network setup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: refactor Created 8 years, 8 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
Index: chrome/browser/chromeos/cros/network_library.h
diff --git a/chrome/browser/chromeos/cros/network_library.h b/chrome/browser/chromeos/cros/network_library.h
index 7cd4fdf3c41cac070b384744d77e3255885e9115..a3e5940d53d8618ee9d694e3260407a9f08bad39 100644
--- a/chrome/browser/chromeos/cros/network_library.h
+++ b/chrome/browser/chromeos/cros/network_library.h
@@ -120,6 +120,12 @@ class NetworkDevice {
return sim_lock_state_ == SIM_LOCKED_PIN ||
sim_lock_state_ == SIM_LOCKED_PUK;
}
+ // Returns true if GSM modem and SIM as absent, otherwise
+ // returhs false: GSM modem and SIM card is present or CDMA modem.
stevenjb 2012/04/25 01:29:49 nit: returhs
Nikita (slow) 2012/04/25 14:01:38 Done.
+ bool is_sim_absent() const {
+ return technology_family() == TECHNOLOGY_FAMILY_GSM &&
+ !is_sim_locked() && imsi().empty();
+ }
const int sim_retries_left() const { return sim_retries_left_; }
SimPinRequire sim_pin_required() const { return sim_pin_required_; }
const std::string& firmware_revision() const { return firmware_revision_; }

Powered by Google App Engine
This is Rietveld 408576698