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 "ash/system/chromeos/network/network_state_notifier.h" | 5 #include "ash/system/chromeos/network/network_state_notifier.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/system/chromeos/network/network_observer.h" | 8 #include "ash/system/chromeos/network/network_observer.h" |
9 #include "ash/system/tray/system_tray_notifier.h" | 9 #include "ash/system/tray/system_tray_notifier.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chromeos/network/network_connection_handler.h" | 13 #include "chromeos/network/network_connection_handler.h" |
14 #include "chromeos/network/network_event_log.h" | 14 #include "chromeos/network/network_event_log.h" |
15 #include "chromeos/network/network_state.h" | 15 #include "chromeos/network/network_state.h" |
16 #include "chromeos/network/network_state_handler.h" | 16 #include "chromeos/network/network_state_handler.h" |
17 #include "grit/ash_strings.h" | 17 #include "grit/ash_strings.h" |
18 #include "third_party/cros_system_api/dbus/service_constants.h" | 18 #include "third_party/cros_system_api/dbus/service_constants.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 | 20 |
21 using chromeos::NetworkConnectionHandler; | 21 using chromeos::NetworkConnectionHandler; |
22 using chromeos::NetworkHandler; | 22 using chromeos::NetworkHandler; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 VLOG(2) << " Network: " << network->path(); | 246 VLOG(2) << " Network: " << network->path(); |
247 cached_state_[network->path()] = network->connection_state(); | 247 cached_state_[network->path()] = network->connection_state(); |
248 } | 248 } |
249 const NetworkState* default_network = | 249 const NetworkState* default_network = |
250 NetworkHandler::Get()->network_state_handler()->DefaultNetwork(); | 250 NetworkHandler::Get()->network_state_handler()->DefaultNetwork(); |
251 if (default_network && default_network->IsConnectedState()) | 251 if (default_network && default_network->IsConnectedState()) |
252 last_active_network_ = default_network->path(); | 252 last_active_network_ = default_network->path(); |
253 } | 253 } |
254 | 254 |
255 } // namespace ash | 255 } // namespace ash |
OLD | NEW |