summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/cros/network_library.cc
diff options
context:
space:
mode:
authorbenchan@chromium.org <benchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 01:55:17 +0000
committerbenchan@chromium.org <benchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 01:55:17 +0000
commitf36f84cc1be4e03a921e365ff7b9c93a8cd6c325 (patch)
tree7a2b254a79a3ef528c851d5e88567f2c7ba27137 /chrome/browser/chromeos/cros/network_library.cc
parentf9526d17e1eb2ae23c805c3dbe1ee5d489cc01f2 (diff)
downloadchromium_src-f36f84cc1be4e03a921e365ff7b9c93a8cd6c325.zip
chromium_src-f36f84cc1be4e03a921e365ff7b9c93a8cd6c325.tar.gz
chromium_src-f36f84cc1be4e03a921e365ff7b9c93a8cd6c325.tar.bz2
Use shill Cellular.SIMPresent to determine if a SIM card is present.
Instead of relying on a non-empty IMSI value, the Cellular.SIMPresent property exposed by shill provides a more robust way to determine SIM presence. BUG=chromium-os:34002 TEST=Verified the following: 1. A GSM modem cannot be enabled if there is no SIM card. 2. A GSM modem can be enabled/disabled if there is a SIM card with or without PIN lock. 3. A CDMA modem can always be enabled/disabled. Review URL: https://chromiumcodereview.appspot.com/11187031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros/network_library.cc')
-rw-r--r--chrome/browser/chromeos/cros/network_library.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc
index 307bc2e..ba81959 100644
--- a/chrome/browser/chromeos/cros/network_library.cc
+++ b/chrome/browser/chromeos/cros/network_library.cc
@@ -183,6 +183,7 @@ NetworkDevice::NetworkDevice(const std::string& device_path)
sim_lock_state_(SIM_UNKNOWN),
sim_retries_left_(kDefaultSimUnlockRetriesCount),
sim_pin_required_(SIM_PIN_REQUIRE_UNKNOWN),
+ sim_present_(false),
prl_version_(0),
data_roaming_allowed_(false),
support_network_scan_(false),