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 "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 void VPNConfigView::ParseVPNUIProperty(NetworkPropertyUIData* property_ui_data, | 907 void VPNConfigView::ParseVPNUIProperty(NetworkPropertyUIData* property_ui_data, |
908 Network* network, | 908 Network* network, |
909 const std::string& dict_key, | 909 const std::string& dict_key, |
910 const std::string& key) { | 910 const std::string& key) { |
911 NetworkLibrary* network_library = CrosLibrary::Get()->GetNetworkLibrary(); | 911 NetworkLibrary* network_library = CrosLibrary::Get()->GetNetworkLibrary(); |
912 const base::DictionaryValue* onc = | 912 const base::DictionaryValue* onc = |
913 network_library->FindOncForNetwork(network->unique_id()); | 913 network_library->FindOncForNetwork(network->unique_id()); |
914 | 914 |
915 property_ui_data->ParseOncProperty( | 915 property_ui_data->ParseOncProperty( |
916 network->ui_data(), onc, | 916 network->ui_data(), onc, |
917 base::StringPrintf("%s.%s.%s", onc::kVPN, dict_key.c_str(), key.c_str())); | 917 base::StringPrintf("%s.%s.%s", |
| 918 onc::network_config::kVPN, |
| 919 dict_key.c_str(), |
| 920 key.c_str())); |
918 } | 921 } |
919 | 922 |
920 } // namespace chromeos | 923 } // namespace chromeos |
OLD | NEW |