Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: chrome/browser/chromeos/login/screens/network_screen.cc

Issue 14587002: Add DefaultNetworkChanged signal for ConnectivityStateHelper observers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/network_screen.h ('k') | chrome/browser/chromeos/net/connectivity_state_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698