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

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

Issue 12968004: Implemented new UI for error messages on OOBE/Login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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
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/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 // Enters the enterprise enrollment screen. |forced| is true if this is the 161 // Enters the enterprise enrollment screen. |forced| is true if this is the
162 // result of an auto-enrollment check, and the user shouldn't be able to 162 // result of an auto-enrollment check, and the user shouldn't be able to
163 // easily cancel the enrollment. In that case, |user| is the user name that 163 // easily cancel the enrollment. In that case, |user| is the user name that
164 // first logged in. 164 // first logged in.
165 void ShowEnrollmentScreen(bool forced, const std::string& user); 165 void ShowEnrollmentScreen(bool forced, const std::string& user);
166 166
167 // Shows "reset device" screen. 167 // Shows "reset device" screen.
168 void ShowResetScreen(); 168 void ShowResetScreen();
169 169
170 // Shows "critical TPM error" screen and starts reboot timer. 170 // Shows "critical TPM error" screen.
171 void ShowTPMErrorAndScheduleReboot(); 171 void ShowTPMError();
172
173 // Reboot timer handler.
174 void OnRebootTimeElapsed();
175 172
176 // Invoked to complete login. Login might be suspended if auto-enrollment 173 // Invoked to complete login. Login might be suspended if auto-enrollment
177 // has to be performed, and will resume once auto-enrollment completes. 174 // has to be performed, and will resume once auto-enrollment completes.
178 void CompleteLoginInternal( 175 void CompleteLoginInternal(
179 const std::string& username, 176 const std::string& username,
180 const std::string& password, 177 const std::string& password,
181 DeviceSettingsService::OwnershipStatus ownership_status, 178 DeviceSettingsService::OwnershipStatus ownership_status,
182 bool is_owner); 179 bool is_owner);
183 180
184 // Creates |login_performer_| if necessary and calls login() on it. 181 // Creates |login_performer_| if necessary and calls login() on it.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 base::OneShotTimer<ExistingUserController> reboot_timer_; 266 base::OneShotTimer<ExistingUserController> reboot_timer_;
270 267
271 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); 268 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin);
272 269
273 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 270 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
274 }; 271 };
275 272
276 } // namespace chromeos 273 } // namespace chromeos
277 274
278 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 275 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698