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
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_CHROME_RESULT_CODES_H_
6 #define CHROME_COMMON_CHROME_RESULT_CODES_H_
8 #include "content/public/common/result_codes.h"
13 RESULT_CODE_CHROME_START
= content::RESULT_CODE_LAST_CODE
,
15 // An invalid command line url was given.
16 RESULT_CODE_INVALID_CMDLINE_URL
= RESULT_CODE_CHROME_START
,
18 // The process is of an unknown type.
19 RESULT_CODE_BAD_PROCESS_TYPE
,
21 // A critical chrome file is missing.
22 RESULT_CODE_MISSING_DATA
,
24 // Failed to make Chrome default browser (not used?).
25 RESULT_CODE_SHELL_INTEGRATION_FAILED
,
27 // Machine level install exists
28 RESULT_CODE_MACHINE_LEVEL_INSTALL_EXISTS
,
30 // Uninstall detected another chrome instance.
31 RESULT_CODE_UNINSTALL_CHROME_ALIVE
,
33 // The user changed their mind.
34 RESULT_CODE_UNINSTALL_USER_CANCEL
,
36 // Delete profile as well during uninstall.
37 RESULT_CODE_UNINSTALL_DELETE_PROFILE
,
39 // Command line parameter is not supported.
40 RESULT_CODE_UNSUPPORTED_PARAM
,
42 // Browser import hung and was killed.
43 RESULT_CODE_IMPORTER_HUNG
,
45 // Trying to restart the browser we crashed.
46 RESULT_CODE_RESPAWN_FAILED
,
48 // The EXP1, EXP2, EXP3, EXP4 are generic codes used to communicate some
49 // simple outcome back to the process that launched us. This is used for
50 // experiments and the actual meaning depends on the experiment.
51 // (only EXP2 is used?)
52 RESULT_CODE_NORMAL_EXIT_EXP1
,
53 RESULT_CODE_NORMAL_EXIT_EXP2
,
54 RESULT_CODE_NORMAL_EXIT_EXP3
,
55 RESULT_CODE_NORMAL_EXIT_EXP4
,
57 // For experiments this return code means that the user canceled causes the
58 // did_run "dr" signal to be reset soi this chrome run does not count as
59 // active chrome usage.
60 RESULT_CODE_NORMAL_EXIT_CANCEL
,
62 // The profile was in use on another host.
63 RESULT_CODE_PROFILE_IN_USE
,
65 // Failed to pack an extension via the cmd line.
66 RESULT_CODE_PACK_EXTENSION_ERROR
,
68 // Failed to silently uninstall an extension.
69 RESULT_CODE_UNINSTALL_EXTENSION_ERROR
,
71 // The browser process exited early by passing the command line to another
73 RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED
,
75 // A dummy value we should not use. See crbug.com/152285.
76 RESULT_CODE_NOTUSED_1
,
78 // Failed to install an item from the webstore when the
79 // kInstallEphemeralAppFromWebstore command line flag was present.
80 // As this flag is no longer supported, this return code should never be
82 RESULT_CODE_INSTALL_FROM_WEBSTORE_ERROR_2
,
84 // A dummy value we should not use. See crbug.com/152285.
85 RESULT_CODE_NOTUSED_2
,
87 // Returned when the user has not yet accepted the EULA.
88 RESULT_CODE_EULA_REFUSED
,
90 // Failed to migrate user data directory for side-by-side package support
92 RESULT_CODE_SXS_MIGRATION_FAILED
,
94 // The action is not allowed by a policy.
95 RESULT_CODE_ACTION_DISALLOWED_BY_POLICY
,
97 // An browser process was sandboxed. This should never happen.
98 RESULT_CODE_INVALID_SANDBOX_STATE
,
100 // Last return code (keep this last).
101 RESULT_CODE_CHROME_LAST_CODE
,
104 } // namespace chrome
106 #endif // CHROME_COMMON_CHROME_RESULT_CODES_H_