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

Unified Diff: chromeos/network/network_util.cc

Issue 694533007: Add 'setProperties' to InternetOptionsHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + feedback Created 6 years, 1 month 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 | « chromeos/network/network_util.h ('k') | chromeos/network/onc/onc_translator_onc_to_shill.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_util.cc
diff --git a/chromeos/network/network_util.cc b/chromeos/network/network_util.cc
index 7f0aaf8911a606535a1f4768dfd4a58d11794fe4..1d84adf0af02d144b0ff1905bd662488112631ef 100644
--- a/chromeos/network/network_util.cc
+++ b/chromeos/network/network_util.cc
@@ -191,5 +191,13 @@ std::string TranslateONCTypeToShill(const std::string& onc_type) {
return shill_type;
}
+std::string TranslateShillTypeToONC(const std::string& shill_type) {
+ if (shill_type == shill::kTypeEthernet)
+ return ::onc::network_type::kEthernet;
+ std::string onc_type;
+ onc::TranslateStringToONC(onc::kNetworkTypeTable, shill_type, &onc_type);
+ return onc_type;
+}
+
} // namespace network_util
} // namespace chromeos
« no previous file with comments | « chromeos/network/network_util.h ('k') | chromeos/network/onc/onc_translator_onc_to_shill.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698