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/login/screens/network_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/network_screen.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string16.h" | 8 #include "base/string16.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 return WizardController::kNetworkScreenName; | 73 return WizardController::kNetworkScreenName; |
74 } | 74 } |
75 | 75 |
76 //////////////////////////////////////////////////////////////////////////////// | 76 //////////////////////////////////////////////////////////////////////////////// |
77 // NetworkScreen, ConnectivityStateHelperObserver implementation: | 77 // NetworkScreen, ConnectivityStateHelperObserver implementation: |
78 | 78 |
79 void NetworkScreen::NetworkManagerChanged() { | 79 void NetworkScreen::NetworkManagerChanged() { |
80 UpdateStatus(); | 80 UpdateStatus(); |
81 } | 81 } |
82 | 82 |
| 83 void NetworkScreen::DefaultNetworkChanged() { |
| 84 NetworkManagerChanged(); |
| 85 } |
| 86 |
83 //////////////////////////////////////////////////////////////////////////////// | 87 //////////////////////////////////////////////////////////////////////////////// |
84 // NetworkScreen, public: | 88 // NetworkScreen, public: |
85 | 89 |
86 void NetworkScreen::Refresh() { | 90 void NetworkScreen::Refresh() { |
87 SubscribeNetworkNotification(); | 91 SubscribeNetworkNotification(); |
88 NetworkManagerChanged(); | 92 NetworkManagerChanged(); |
89 } | 93 } |
90 | 94 |
91 /////////////////////////////////////////////////////////////////////////////// | 95 /////////////////////////////////////////////////////////////////////////////// |
92 // NetworkScreen, NetworkScreenActor::Delegate implementation: | 96 // NetworkScreen, NetworkScreenActor::Delegate implementation: |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 } | 190 } |
187 | 191 |
188 network_id_ = network_id; | 192 network_id_ = network_id; |
189 if (actor_) { | 193 if (actor_) { |
190 actor_->ShowConnectingStatus(continue_pressed_, network_id_); | 194 actor_->ShowConnectingStatus(continue_pressed_, network_id_); |
191 actor_->EnableContinue(false); | 195 actor_->EnableContinue(false); |
192 } | 196 } |
193 } | 197 } |
194 | 198 |
195 } // namespace chromeos | 199 } // namespace chromeos |
OLD | NEW |