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

Unified Diff: chromeos/network/device_state.h

Issue 17091006: Add additional cellular-related properties to Network|DeviceState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address stevenjb comments Created 7 years, 6 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 | « no previous file | chromeos/network/device_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/device_state.h
diff --git a/chromeos/network/device_state.h b/chromeos/network/device_state.h
index 37f9fb8cac485e77f691e898a7cb5d2ec9fdb1ca..6c1beafa830bc70baa620842143aaadc901c26e4 100644
--- a/chromeos/network/device_state.h
+++ b/chromeos/network/device_state.h
@@ -25,7 +25,11 @@ class CHROMEOS_EXPORT DeviceState : public ManagedState {
bool provider_requires_roaming() const { return provider_requires_roaming_; }
bool support_network_scan() const { return support_network_scan_; }
bool scanning() const { return scanning_; }
- std::string sim_lock_type() const { return sim_lock_type_; }
+ const std::string& sim_lock_type() const { return sim_lock_type_; }
+ const std::string& meid() const { return meid_; }
+ const std::string& imei() const { return imei_; }
+ const std::string& iccid() const { return iccid_; }
+ const std::string& mdn() const { return mdn_; }
// Returns true if the technology family is GSM and sim_present_ is false.
bool IsSimAbsent() const;
@@ -40,6 +44,10 @@ class CHROMEOS_EXPORT DeviceState : public ManagedState {
bool scanning_;
std::string technology_family_;
std::string sim_lock_type_;
+ std::string meid_;
+ std::string imei_;
+ std::string iccid_;
+ std::string mdn_;
bool sim_present_;
DISALLOW_COPY_AND_ASSIGN(DeviceState);
« no previous file with comments | « no previous file | chromeos/network/device_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698