| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ui/chromeos/network/network_connect.h" | 5 #include "ash/system/chromeos/network/network_connect.h" |
| 6 | 6 |
| 7 #include "ash/system/chromeos/network/network_state_notifier.h" |
| 7 #include "base/bind.h" | 8 #include "base/bind.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/values.h" | 12 #include "base/values.h" |
| 12 #include "chromeos/login/login_state.h" | 13 #include "chromeos/login/login_state.h" |
| 13 #include "chromeos/network/device_state.h" | 14 #include "chromeos/network/device_state.h" |
| 14 #include "chromeos/network/network_activation_handler.h" | 15 #include "chromeos/network/network_activation_handler.h" |
| 15 #include "chromeos/network/network_configuration_handler.h" | 16 #include "chromeos/network/network_configuration_handler.h" |
| 16 #include "chromeos/network/network_connection_handler.h" | 17 #include "chromeos/network/network_connection_handler.h" |
| 17 #include "chromeos/network/network_event_log.h" | 18 #include "chromeos/network/network_event_log.h" |
| 18 #include "chromeos/network/network_handler_callbacks.h" | 19 #include "chromeos/network/network_handler_callbacks.h" |
| 19 #include "chromeos/network/network_profile.h" | 20 #include "chromeos/network/network_profile.h" |
| 20 #include "chromeos/network/network_profile_handler.h" | 21 #include "chromeos/network/network_profile_handler.h" |
| 21 #include "chromeos/network/network_state.h" | 22 #include "chromeos/network/network_state.h" |
| 22 #include "chromeos/network/network_state_handler.h" | 23 #include "chromeos/network/network_state_handler.h" |
| 23 #include "grit/ui_chromeos_strings.h" | 24 #include "grit/ash_resources.h" |
| 25 #include "grit/ash_strings.h" |
| 24 #include "third_party/cros_system_api/dbus/service_constants.h" | 26 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 25 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 26 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
| 27 #include "ui/chromeos/network/network_state_notifier.h" | |
| 28 #include "ui/message_center/message_center.h" | 29 #include "ui/message_center/message_center.h" |
| 29 #include "ui/message_center/notification.h" | 30 #include "ui/message_center/notification.h" |
| 30 | 31 |
| 31 using chromeos::DeviceState; | 32 using chromeos::DeviceState; |
| 32 using chromeos::NetworkConfigurationHandler; | 33 using chromeos::NetworkConfigurationHandler; |
| 33 using chromeos::NetworkConnectionHandler; | 34 using chromeos::NetworkConnectionHandler; |
| 34 using chromeos::NetworkHandler; | 35 using chromeos::NetworkHandler; |
| 35 using chromeos::NetworkProfile; | 36 using chromeos::NetworkProfile; |
| 36 using chromeos::NetworkProfileHandler; | 37 using chromeos::NetworkProfileHandler; |
| 37 using chromeos::NetworkState; | 38 using chromeos::NetworkState; |
| 38 using chromeos::NetworkStateHandler; | 39 using chromeos::NetworkStateHandler; |
| 39 using chromeos::NetworkTypePattern; | 40 using chromeos::NetworkTypePattern; |
| 40 | 41 |
| 41 namespace ui { | 42 namespace ash { |
| 42 | 43 |
| 43 namespace { | 44 namespace { |
| 44 | 45 |
| 45 // Returns true for carriers that can be activated through Shill instead of | 46 // Returns true for carriers that can be activated through Shill instead of |
| 46 // through a WebUI dialog. | 47 // through a WebUI dialog. |
| 47 bool IsDirectActivatedCarrier(const std::string& carrier) { | 48 bool IsDirectActivatedCarrier(const std::string& carrier) { |
| 48 if (carrier == shill::kCarrierSprint) | 49 if (carrier == shill::kCarrierSprint) |
| 49 return true; | 50 return true; |
| 50 return false; | 51 return false; |
| 51 } | 52 } |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 CHECK(g_network_connect); | 638 CHECK(g_network_connect); |
| 638 return g_network_connect; | 639 return g_network_connect; |
| 639 } | 640 } |
| 640 | 641 |
| 641 NetworkConnect::NetworkConnect() { | 642 NetworkConnect::NetworkConnect() { |
| 642 } | 643 } |
| 643 | 644 |
| 644 NetworkConnect::~NetworkConnect() { | 645 NetworkConnect::~NetworkConnect() { |
| 645 } | 646 } |
| 646 | 647 |
| 647 } // namespace ui | 648 } // ash |
| OLD | NEW |