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

Unified Diff: chromeos/network/onc/onc_translator_shill_to_onc.cc

Issue 11664005: Extending the translation from ONC to Shill. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 11 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 c33e0a95b9c8f52ab8a387c021244b87cce9586e..afdbaafce3c9a16bc58b900834a68af5023493ca 100644
--- a/chromeos/network/onc/onc_translator_shill_to_onc.cc
+++ b/chromeos/network/onc/onc_translator_shill_to_onc.cc
@@ -179,6 +179,13 @@ void ShillToONCTranslator::TranslateNetworkConfiguration() {
std::string network_type;
if (onc_object_->GetStringWithoutPathExpansion(kType, &network_type))
TranslateAndAddNestedObject(network_type);
+
+ if (network_type == kVPN) {
+ std::string name;
+ shill_dictionary_->GetStringWithoutPathExpansion(flimflam::kNameProperty,
+ &name);
+ onc_object_->SetStringWithoutPathExpansion(kName, name);
+ }
}
void ShillToONCTranslator::CopyPropertiesAccordingToSignature() {
« no previous file with comments | « chromeos/network/onc/onc_translator_onc_to_shill.cc ('k') | chromeos/network/onc/onc_translator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698