| 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 aca2df0c3e5cefb7933b4f834eb0851e0fbe8a6e..ad20482ace48a8a0b1383e5f8d016ff83e5c6415 100644
|
| --- a/chromeos/network/onc/onc_translator_shill_to_onc.cc
|
| +++ b/chromeos/network/onc/onc_translator_shill_to_onc.cc
|
| @@ -17,6 +17,7 @@
|
| #include "chromeos/network/network_util.h"
|
| #include "chromeos/network/onc/onc_signature.h"
|
| #include "chromeos/network/onc/onc_translation_tables.h"
|
| +#include "chromeos/network/onc/onc_utils.h"
|
| #include "chromeos/network/shill_property_util.h"
|
| #include "components/onc/onc_constants.h"
|
| #include "third_party/cros_system_api/dbus/service_constants.h"
|
| @@ -562,6 +563,22 @@ void ShillToONCTranslator::TranslateNetworkWithState() {
|
| *static_ipconfig);
|
| }
|
| }
|
| +
|
| + std::string proxy_config_str;
|
| + if (shill_dictionary_->GetStringWithoutPathExpansion(
|
| + shill::kProxyConfigProperty, &proxy_config_str) &&
|
| + !proxy_config_str.empty()) {
|
| + scoped_ptr<base::DictionaryValue> proxy_config_value(
|
| + ReadDictionaryFromJson(proxy_config_str));
|
| + if (proxy_config_value) {
|
| + scoped_ptr<base::DictionaryValue> proxy_settings =
|
| + ConvertProxyConfigToOncProxySettings(*proxy_config_value);
|
| + if (proxy_settings) {
|
| + onc_object_->SetWithoutPathExpansion(
|
| + ::onc::network_config::kProxySettings, proxy_settings.release());
|
| + }
|
| + }
|
| + }
|
| }
|
|
|
| void ShillToONCTranslator::TranslateIPConfig() {
|
|
|