Chromium Code Reviews| 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_; } |