OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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 #ifndef CHROME_COMMON_CHROME_RESULT_CODES_H_ |
| 6 #define CHROME_COMMON_CHROME_RESULT_CODES_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "content/common/result_codes.h" |
| 10 |
| 11 namespace chrome { |
| 12 |
| 13 enum ResultCode { |
| 14 RESULT_CODE_CHROME_START = content::RESULT_CODE_LAST_CODE, |
| 15 |
| 16 // An invalid command line url was given. |
| 17 RESULT_CODE_INVALID_CMDLINE_URL = RESULT_CODE_CHROME_START, |
| 18 |
| 19 // The process is of an unknown type. |
| 20 RESULT_CODE_BAD_PROCESS_TYPE, |
| 21 |
| 22 // A critical chrome file is missing. |
| 23 RESULT_CODE_MISSING_DATA, |
| 24 |
| 25 // Failed to make Chrome default browser (not used?). |
| 26 RESULT_CODE_SHELL_INTEGRATION_FAILED, |
| 27 |
| 28 // Machine level install exists |
| 29 RESULT_CODE_MACHINE_LEVEL_INSTALL_EXISTS, |
| 30 |
| 31 // Uninstall detected another chrome instance. |
| 32 RESULT_CODE_UNINSTALL_CHROME_ALIVE, |
| 33 |
| 34 // The user changed their mind. |
| 35 RESULT_CODE_UNINSTALL_USER_CANCEL, |
| 36 |
| 37 // Delete profile as well during uninstall. |
| 38 RESULT_CODE_UNINSTALL_DELETE_PROFILE, |
| 39 |
| 40 // Command line parameter is not supported. |
| 41 RESULT_CODE_UNSUPPORTED_PARAM, |
| 42 |
| 43 // Browser import hung and was killed. |
| 44 RESULT_CODE_IMPORTER_HUNG, |
| 45 |
| 46 // Trying to restart the browser we crashed. |
| 47 RESULT_CODE_RESPAWN_FAILED, |
| 48 |
| 49 // The EXP1, EXP2, EXP3, EXP4 are generic codes used to communicate some |
| 50 // simple outcome back to the process that launched us. This is used for |
| 51 // experiments and the actual meaning depends on the experiment. |
| 52 // (only EXP2 is used?) |
| 53 RESULT_CODE_NORMAL_EXIT_EXP1, |
| 54 RESULT_CODE_NORMAL_EXIT_EXP2, |
| 55 RESULT_CODE_NORMAL_EXIT_EXP3, |
| 56 RESULT_CODE_NORMAL_EXIT_EXP4, |
| 57 |
| 58 // For experiments this return code means that the user canceled causes the |
| 59 // did_run "dr" signal to be reset soi this chrome run does not count as |
| 60 // active chrome usage. |
| 61 RESULT_CODE_NORMAL_EXIT_CANCEL, |
| 62 |
| 63 // The profile was in use on another host. |
| 64 RESULT_CODE_PROFILE_IN_USE, |
| 65 |
| 66 // Failed to pack an extension via the cmd line. |
| 67 RESULT_CODE_PACK_EXTENSION_ERROR, |
| 68 |
| 69 // Failed to silently uninstall an extension. |
| 70 RESULT_CODE_UNINSTALL_EXTENSION_ERROR, |
| 71 |
| 72 // Last return code (keep this last). |
| 73 RESULT_CODE_CHROME_LAST_CODE, |
| 74 }; |
| 75 |
| 76 } // namespace chrome |
| 77 |
| 78 #endif // CHROME_COMMON_CHROME_RESULT_CODES_H_ |
OLD | NEW |