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

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

Issue 2705363002: cros: Move BaseScreenDelegate::ExitCodes into separate file, ScreenExitCode. (Closed)
Patch Set: Rebase Created 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/login/screens/screen_exit_code.h"
6
7 #include "base/logging.h"
8
9 namespace chromeos {
10
11 std::string ExitCodeToString(ScreenExitCode code) {
12 switch (code) {
13 case ScreenExitCode::NETWORK_CONNECTED:
14 return "NETWORK_CONNECTED";
15 case ScreenExitCode::HID_DETECTION_COMPLETED:
16 return "HID_DETECTION_COMPLETED";
17 case ScreenExitCode::CONNECTION_FAILED:
18 return "CONNECTION_FAILED";
19 case ScreenExitCode::UPDATE_INSTALLED:
20 return "UPDATE_INSTALLED";
21 case ScreenExitCode::UPDATE_NOUPDATE:
22 return "UPDATE_NOUPDATE";
23 case ScreenExitCode::UPDATE_ERROR_CHECKING_FOR_UPDATE:
24 return "UPDATE_ERROR_CHECKING_FOR_UPDATE";
25 case ScreenExitCode::UPDATE_ERROR_UPDATING:
26 return "UPDATE_ERROR_UPDATING";
27 case ScreenExitCode::USER_IMAGE_SELECTED:
28 return "USER_IMAGE_SELECTED";
29 case ScreenExitCode::EULA_ACCEPTED:
30 return "EULA_ACCEPTED";
31 case ScreenExitCode::EULA_BACK:
32 return "EULA_BACK";
33 case ScreenExitCode::ENTERPRISE_AUTO_ENROLLMENT_CHECK_COMPLETED:
34 return "ENTERPRISE_AUTO_ENROLLMENT_CHECK_COMPLETED";
35 case ScreenExitCode::ENTERPRISE_ENROLLMENT_COMPLETED:
36 return "ENTERPRISE_ENROLLMENT_COMPLETED";
37 case ScreenExitCode::ENTERPRISE_ENROLLMENT_BACK:
38 return "ENTERPRISE_ENROLLMENT_BACK";
39 case ScreenExitCode::RESET_CANCELED:
40 return "RESET_CANCELED";
41 case ScreenExitCode::KIOSK_AUTOLAUNCH_CANCELED:
42 return "KIOSK_AUTOLAUNCH_CANCELED";
43 case ScreenExitCode::KIOSK_AUTOLAUNCH_CONFIRMED:
44 return "KIOSK_AUTOLAUNCH_CONFIRMED";
45 case ScreenExitCode::KIOSK_ENABLE_COMPLETED:
46 return "KIOSK_ENABLE_COMPLETED";
47 case ScreenExitCode::TERMS_OF_SERVICE_DECLINED:
48 return "TERMS_OF_SERVICE_DECLINED";
49 case ScreenExitCode::TERMS_OF_SERVICE_ACCEPTED:
50 return "TERMS_OF_SERVICE_ACCEPTED";
51 case ScreenExitCode::WRONG_HWID_WARNING_SKIPPED:
52 return "WRONG_HWID_WARNING_SKIPPED";
53 case ScreenExitCode::CONTROLLER_PAIRING_FINISHED:
54 return "CONTROLLER_PAIRING_FINISHED";
55 case ScreenExitCode::ENABLE_DEBUGGING_FINISHED:
56 return "ENABLE_DEBUGGING_FINISHED";
57 case ScreenExitCode::ENABLE_DEBUGGING_CANCELED:
58 return "ENABLE_DEBUGGING_CANCELED";
59 case ScreenExitCode::ARC_TERMS_OF_SERVICE_FINISHED:
60 return "ARC_TERMS_OF_SERVICE_FINISHED";
61 case ScreenExitCode::UPDATE_ERROR_UPDATING_CRITICAL_UPDATE:
62 return "UPDATE_ERROR_UPDATING_CRITICAL_UPDATE";
63 case ScreenExitCode::EXIT_CODES_COUNT:
64 default:
65 NOTREACHED();
66 return "";
67 }
68 }
69
70 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698