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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.h

Issue 413133004: Remove unused LoginPerformer::Delegate setter and member. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 void CompleteLoginInternal( 207 void CompleteLoginInternal(
208 const UserContext& user_context, 208 const UserContext& user_context,
209 DeviceSettingsService::OwnershipStatus ownership_status); 209 DeviceSettingsService::OwnershipStatus ownership_status);
210 210
211 // Creates |login_performer_| if necessary and calls login() on it. 211 // Creates |login_performer_| if necessary and calls login() on it.
212 // The string arguments aren't passed by const reference because this is 212 // The string arguments aren't passed by const reference because this is
213 // posted as |resume_login_callback_| and resets it. 213 // posted as |resume_login_callback_| and resets it.
214 void PerformLogin(const UserContext& user_context, 214 void PerformLogin(const UserContext& user_context,
215 LoginPerformer::AuthorizationMode auth_mode); 215 LoginPerformer::AuthorizationMode auth_mode);
216 216
217 void set_login_performer_delegate(LoginPerformer::Delegate* d) {
218 login_performer_delegate_.reset(d);
219 }
220
221 // Updates the |login_display_| attached to this controller. 217 // Updates the |login_display_| attached to this controller.
222 void UpdateLoginDisplay(const user_manager::UserList& users); 218 void UpdateLoginDisplay(const user_manager::UserList& users);
223 219
224 // Sends an accessibility alert event to extension listeners. 220 // Sends an accessibility alert event to extension listeners.
225 void SendAccessibilityAlert(const std::string& alert_text); 221 void SendAccessibilityAlert(const std::string& alert_text);
226 222
227 // Public session auto-login timer. 223 // Public session auto-login timer.
228 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_; 224 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_;
229 225
230 // Public session auto-login timeout, in milliseconds. 226 // Public session auto-login timeout, in milliseconds.
231 int public_session_auto_login_delay_; 227 int public_session_auto_login_delay_;
232 228
233 // Username for public session auto-login. 229 // Username for public session auto-login.
234 std::string public_session_auto_login_username_; 230 std::string public_session_auto_login_username_;
235 231
236 // Used to execute login operations. 232 // Used to execute login operations.
237 scoped_ptr<LoginPerformer> login_performer_; 233 scoped_ptr<LoginPerformer> login_performer_;
238 234
239 // Delegate for login performer to be overridden by tests.
240 // |this| is used if |login_performer_delegate_| is NULL.
241 scoped_ptr<LoginPerformer::Delegate> login_performer_delegate_;
242
243 // Delegate to forward all authentication status events to. 235 // Delegate to forward all authentication status events to.
244 // Tests can use this to receive authentication status events. 236 // Tests can use this to receive authentication status events.
245 AuthStatusConsumer* auth_status_consumer_; 237 AuthStatusConsumer* auth_status_consumer_;
246 238
247 // Username of the last login attempt. 239 // Username of the last login attempt.
248 std::string last_login_attempt_username_; 240 std::string last_login_attempt_username_;
249 241
250 // OOBE/login display host. 242 // OOBE/login display host.
251 LoginDisplayHost* host_; 243 LoginDisplayHost* host_;
252 244
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 local_account_auto_login_delay_subscription_; 319 local_account_auto_login_delay_subscription_;
328 320
329 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); 321 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin);
330 322
331 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 323 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
332 }; 324 };
333 325
334 } // namespace chromeos 326 } // namespace chromeos
335 327
336 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 328 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698