OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/options/vpn_config_view.h" | 5 #include "chrome/browser/chromeos/options/vpn_config_view.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kUsername, | 799 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kUsername, |
800 &username_ui_data_); | 800 &username_ui_data_); |
801 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kPassword, | 801 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kPassword, |
802 &user_passphrase_ui_data_); | 802 &user_passphrase_ui_data_); |
803 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kSaveCredentials, | 803 ParseVPNUIProperty(vpn, credentials_dict_name, ::onc::vpn::kSaveCredentials, |
804 &save_credentials_ui_data_); | 804 &save_credentials_ui_data_); |
805 } | 805 } |
806 | 806 |
807 void VPNConfigView::GetPropertiesError( | 807 void VPNConfigView::GetPropertiesError( |
808 const std::string& error_name, | 808 const std::string& error_name, |
809 scoped_ptr<base::DictionaryValue> error_data) { | 809 std::unique_ptr<base::DictionaryValue> error_data) { |
810 NET_LOG_ERROR("Shill Error from VpnConfigView: " + error_name, ""); | 810 NET_LOG_ERROR("Shill Error from VpnConfigView: " + error_name, ""); |
811 } | 811 } |
812 | 812 |
813 void VPNConfigView::SetConfigProperties( | 813 void VPNConfigView::SetConfigProperties( |
814 base::DictionaryValue* properties) { | 814 base::DictionaryValue* properties) { |
815 int provider_type_index = GetProviderTypeIndex(); | 815 int provider_type_index = GetProviderTypeIndex(); |
816 std::string user_passphrase = GetUserPassphrase(); | 816 std::string user_passphrase = GetUserPassphrase(); |
817 std::string user_name = GetUsername(); | 817 std::string user_name = GetUsername(); |
818 std::string group_name = GetGroupName(); | 818 std::string group_name = GetGroupName(); |
819 switch (provider_type_index) { | 819 switch (provider_type_index) { |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 property_ui_data->ParseOncProperty( | 1068 property_ui_data->ParseOncProperty( |
1069 onc_source, | 1069 onc_source, |
1070 onc, | 1070 onc, |
1071 base::StringPrintf("%s.%s.%s", | 1071 base::StringPrintf("%s.%s.%s", |
1072 ::onc::network_config::kVPN, | 1072 ::onc::network_config::kVPN, |
1073 dict_key.c_str(), | 1073 dict_key.c_str(), |
1074 key.c_str())); | 1074 key.c_str())); |
1075 } | 1075 } |
1076 | 1076 |
1077 } // namespace chromeos | 1077 } // namespace chromeos |
OLD | NEW |