| 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 <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" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/chromeos/enrollment_dialog_view.h" | 14 #include "chrome/browser/chromeos/enrollment_dialog_view.h" |
| 15 #include "chrome/browser/chromeos/net/onc_utils.h" | |
| 16 #include "chrome/browser/chromeos/net/shill_error.h" | 15 #include "chrome/browser/chromeos/net/shill_error.h" |
| 17 #include "chrome/browser/chromeos/options/passphrase_textfield.h" | 16 #include "chrome/browser/chromeos/options/passphrase_textfield.h" |
| 18 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
| 19 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
| 20 #include "chrome/grit/theme_resources.h" | 19 #include "chrome/grit/theme_resources.h" |
| 21 #include "chromeos/login/login_state.h" | 20 #include "chromeos/login/login_state.h" |
| 22 #include "chromeos/network/client_cert_util.h" | 21 #include "chromeos/network/client_cert_util.h" |
| 23 #include "chromeos/network/network_configuration_handler.h" | 22 #include "chromeos/network/network_configuration_handler.h" |
| 24 #include "chromeos/network/network_connect.h" | 23 #include "chromeos/network/network_connect.h" |
| 25 #include "chromeos/network/network_event_log.h" | 24 #include "chromeos/network/network_event_log.h" |
| 26 #include "chromeos/network/network_handler.h" | 25 #include "chromeos/network/network_handler.h" |
| 27 #include "chromeos/network/network_state.h" | 26 #include "chromeos/network/network_state.h" |
| 28 #include "chromeos/network/network_state_handler.h" | 27 #include "chromeos/network/network_state_handler.h" |
| 29 #include "chromeos/network/network_ui_data.h" | 28 #include "chromeos/network/network_ui_data.h" |
| 29 #include "chromeos/network/onc/onc_utils.h" |
| 30 #include "chromeos/network/shill_property_util.h" | 30 #include "chromeos/network/shill_property_util.h" |
| 31 #include "components/onc/onc_constants.h" | 31 #include "components/onc/onc_constants.h" |
| 32 #include "third_party/cros_system_api/dbus/service_constants.h" | 32 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 33 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
| 34 #include "ui/base/resource/resource_bundle.h" | 34 #include "ui/base/resource/resource_bundle.h" |
| 35 #include "ui/events/event.h" | 35 #include "ui/events/event.h" |
| 36 #include "ui/views/controls/button/checkbox.h" | 36 #include "ui/views/controls/button/checkbox.h" |
| 37 #include "ui/views/controls/button/image_button.h" | 37 #include "ui/views/controls/button/image_button.h" |
| 38 #include "ui/views/controls/combobox/combobox.h" | 38 #include "ui/views/controls/combobox/combobox.h" |
| 39 #include "ui/views/controls/label.h" | 39 #include "ui/views/controls/label.h" |
| (...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1385 void WifiConfigView::ParseEAPUIProperty(NetworkPropertyUIData* property_ui_data, | 1385 void WifiConfigView::ParseEAPUIProperty(NetworkPropertyUIData* property_ui_data, |
| 1386 const NetworkState* network, | 1386 const NetworkState* network, |
| 1387 const std::string& key) { | 1387 const std::string& key) { |
| 1388 std::string onc_tag = network->type() == shill::kTypeEthernet | 1388 std::string onc_tag = network->type() == shill::kTypeEthernet |
| 1389 ? ::onc::ethernet::kEAP | 1389 ? ::onc::ethernet::kEAP |
| 1390 : ::onc::wifi::kEAP; | 1390 : ::onc::wifi::kEAP; |
| 1391 ParseUIProperty(property_ui_data, network, onc_tag + '.' + key); | 1391 ParseUIProperty(property_ui_data, network, onc_tag + '.' + key); |
| 1392 } | 1392 } |
| 1393 | 1393 |
| 1394 } // namespace chromeos | 1394 } // namespace chromeos |
| OLD | NEW |