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

Side by Side Diff: chrome/browser/chromeos/login/screens/screen_exit_code.h

Issue 2894783003: Make Hands-Off Zero-Touch Enrollment compatibile with tests (Closed)
Patch Set: Make Hands-Off Zero-Touch Enrollment compatibile with tests Created 3 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_SCREENS_SCREEN_EXIT_CODE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 // Each login screen or a view shown within login wizard view is itself a 12 // Each login screen or a view shown within login wizard view is itself a
13 // state. Upon exit each view returns one of the results by calling 13 // state. Upon exit each view returns one of the results by calling
14 // the BaseScreenDelegate::OnExit() method. Depending on the result and the 14 // the BaseScreenDelegate::OnExit() method. Depending on the result and the
15 // current view or state the login wizard decides what is the next view to show. 15 // current view or state the login wizard decides what is the next view to show.
16 // 16 //
17 // There must be an exit code for each way to exit the screen for each screen. 17 // There must be an exit code for each way to exit the screen for each screen.
18 // 18 //
19 // Numeric ids are provided to facilitate interpretation of log files only, 19 // Numeric ids are provided to facilitate interpretation of log files only,
20 // they are subject to change without notice. 20 // they are subject to change without notice.
21 enum class ScreenExitCode { 21 enum class ScreenExitCode {
22 // "Continue" was pressed on network screen and network is online. 22 // "Continue" was pressed on network screen and network is online.
23 NETWORK_CONNECTED = 0, 23 NETWORK_CONNECTED = 0,
24 HID_DETECTION_COMPLETED = 1, 24 HID_DETECTION_COMPLETED = 1,
25 // Connection failed while trying to load a WebPageScreen. 25 // Connection failed while trying to load a WebPageScreen.
26 CONNECTION_FAILED = 2, 26 CONNECTION_FAILED = 2,
27 UPDATE_INSTALLED = 3, 27 UPDATE_INSTALLED = 3,
28 // This exit code means EITHER that there was no update, OR that there
29 // was an update, but that it was not a "critical" update. "Critical" updates
30 // are those that have a deadline and require the device to reboot.
28 UPDATE_NOUPDATE = 4, 31 UPDATE_NOUPDATE = 4,
29 UPDATE_ERROR_CHECKING_FOR_UPDATE = 5, 32 UPDATE_ERROR_CHECKING_FOR_UPDATE = 5,
30 UPDATE_ERROR_UPDATING = 6, 33 UPDATE_ERROR_UPDATING = 6,
31 USER_IMAGE_SELECTED = 7, 34 USER_IMAGE_SELECTED = 7,
32 EULA_ACCEPTED = 8, 35 EULA_ACCEPTED = 8,
33 EULA_BACK = 9, 36 EULA_BACK = 9,
34 ENTERPRISE_AUTO_ENROLLMENT_CHECK_COMPLETED = 10, 37 ENTERPRISE_AUTO_ENROLLMENT_CHECK_COMPLETED = 10,
35 ENTERPRISE_ENROLLMENT_COMPLETED = 11, 38 ENTERPRISE_ENROLLMENT_COMPLETED = 11,
36 ENTERPRISE_ENROLLMENT_BACK = 12, 39 ENTERPRISE_ENROLLMENT_BACK = 12,
37 RESET_CANCELED = 13, 40 RESET_CANCELED = 13,
(...skipping 11 matching lines...) Expand all
49 ENCRYPTION_MIGRATION_FINISHED = 25, 52 ENCRYPTION_MIGRATION_FINISHED = 25,
50 ENCRYPTION_MIGRATION_SKIPPED = 26, 53 ENCRYPTION_MIGRATION_SKIPPED = 26,
51 EXIT_CODES_COUNT // not a real code, must be the last 54 EXIT_CODES_COUNT // not a real code, must be the last
52 }; 55 };
53 56
54 std::string ExitCodeToString(ScreenExitCode code); 57 std::string ExitCodeToString(ScreenExitCode code);
55 58
56 } // namespace chromeos 59 } // namespace chromeos
57 60
58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_ 61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/network_screen.cc ('k') | chrome/browser/chromeos/login/screens/update_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698