| 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
|
|
|