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

Unified Diff: chromeos/network/network_state.cc

Issue 492383002: Use ONC for Cellular APN and SimLock in Settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 6 years, 4 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: chromeos/network/network_state.cc
diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc
index cb451e86090f7ffa8db6d6288ba8387081e49a6b..c47068b719ca5f93cf4453f3001b83d6def4e2ae 100644
--- a/chromeos/network/network_state.cc
+++ b/chromeos/network/network_state.cc
@@ -99,6 +99,12 @@ bool NetworkState::PropertyChanged(const std::string& key,
return GetStringValue(key, value, &activation_state_);
} else if (key == shill::kRoamingStateProperty) {
return GetStringValue(key, value, &roaming_);
+ } else if (key == shill::kPaymentPortalProperty) {
+ const base::DictionaryValue* olp;
+ if (!value.GetAsDictionary(&olp))
+ return false;
+ return olp->GetStringWithoutPathExpansion(shill::kPaymentPortalURL,
+ &payment_url_);
} else if (key == shill::kSecurityProperty) {
return GetStringValue(key, value, &security_);
} else if (key == shill::kEapMethodProperty) {

Powered by Google App Engine
This is Rietveld 408576698