| 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/wifi_config_view.h" | 5 #include "chrome/browser/chromeos/options/wifi_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 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1250 | 1250 |
| 1251 // static | 1251 // static |
| 1252 void WifiConfigView::ParseWiFiUIProperty( | 1252 void WifiConfigView::ParseWiFiUIProperty( |
| 1253 NetworkPropertyUIData* property_ui_data, | 1253 NetworkPropertyUIData* property_ui_data, |
| 1254 Network* network, | 1254 Network* network, |
| 1255 const std::string& key) { | 1255 const std::string& key) { |
| 1256 NetworkLibrary* network_library = CrosLibrary::Get()->GetNetworkLibrary(); | 1256 NetworkLibrary* network_library = CrosLibrary::Get()->GetNetworkLibrary(); |
| 1257 property_ui_data->ParseOncProperty( | 1257 property_ui_data->ParseOncProperty( |
| 1258 network->ui_data(), | 1258 network->ui_data(), |
| 1259 network_library->FindOncForNetwork(network->unique_id()), | 1259 network_library->FindOncForNetwork(network->unique_id()), |
| 1260 base::StringPrintf("%s.%s", onc::kWiFi, key.c_str())); | 1260 base::StringPrintf("%s.%s", onc::network_config::kWiFi, key.c_str())); |
| 1261 } | 1261 } |
| 1262 | 1262 |
| 1263 // static | 1263 // static |
| 1264 void WifiConfigView::ParseWiFiEAPUIProperty( | 1264 void WifiConfigView::ParseWiFiEAPUIProperty( |
| 1265 NetworkPropertyUIData* property_ui_data, | 1265 NetworkPropertyUIData* property_ui_data, |
| 1266 Network* network, | 1266 Network* network, |
| 1267 const std::string& key) { | 1267 const std::string& key) { |
| 1268 ParseWiFiUIProperty( | 1268 ParseWiFiUIProperty( |
| 1269 property_ui_data, network, | 1269 property_ui_data, network, |
| 1270 base::StringPrintf("%s.%s", onc::wifi::kEAP, key.c_str())); | 1270 base::StringPrintf("%s.%s", onc::wifi::kEAP, key.c_str())); |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 } // namespace chromeos | 1273 } // namespace chromeos |
| OLD | NEW |