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

Unified Diff: chromeos/network/onc/onc_translator_shill_to_onc.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/onc/onc_translator_shill_to_onc.cc
diff --git a/chromeos/network/onc/onc_translator_shill_to_onc.cc b/chromeos/network/onc/onc_translator_shill_to_onc.cc
index 224e26c870738d8185fc6fe4006b8323d9546b88..1b1ba7082c874bd936b9ed4f52b7b877c0eb319c 100644
--- a/chromeos/network/onc/onc_translator_shill_to_onc.cc
+++ b/chromeos/network/onc/onc_translator_shill_to_onc.cc
@@ -309,6 +309,10 @@ void ShillToONCTranslator::TranslateCellularWithState() {
shill::kCellularApnProperty, &dictionary)) {
TranslateAndAddNestedObject(::onc::cellular::kAPN, *dictionary);
}
+ if (shill_dictionary_->GetDictionaryWithoutPathExpansion(
+ shill::kCellularLastGoodApnProperty, &dictionary)) {
+ TranslateAndAddNestedObject(::onc::cellular::kLastGoodAPN, *dictionary);
+ }
// Merge the Device dictionary with this one (Cellular) using the
// CellularDevice signature.
const base::DictionaryValue* device_dictionary = NULL;

Powered by Google App Engine
This is Rietveld 408576698