diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 23:28:06 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 23:28:06 +0000 |
commit | eef576fd62fc6be5a23e276353f8cbae217d87ff (patch) | |
tree | 5f492cf31ca5774a1a994c6308b4b520f87e3423 /chrome | |
parent | 5f8cbd5751a4d2ef52974fa4b4f7ab9943db07d1 (diff) | |
download | chromium_src-eef576fd62fc6be5a23e276353f8cbae217d87ff.zip chromium_src-eef576fd62fc6be5a23e276353f8cbae217d87ff.tar.gz chromium_src-eef576fd62fc6be5a23e276353f8cbae217d87ff.tar.bz2 |
Remove fragile check in DidProcessCrash
- the numbers were out of sync with result_codes.h
- can't use result_codes.h in base project so I extracted
the generic part of it.
Rahul: I hope I don't break installer assumptions here.
Dan: don't feel obligated to review.
Review URL: http://codereview.chromium.org/9012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/app/result_codes.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/app/result_codes.h b/chrome/app/result_codes.h index e03a8bc..4acad55 100644 --- a/chrome/app/result_codes.h +++ b/chrome/app/result_codes.h @@ -5,6 +5,8 @@ #ifndef CHROME_APP_RESULT_CODES_H__ #define CHROME_APP_RESULT_CODES_H__ +#include "base/process_util.h" + // This file consolidates all the return codes for the browser and renderer // process. The return code is the value that: // a) is returned by main() or winmain(), or @@ -18,7 +20,9 @@ class ResultCodes { public: enum ExitCode { - NORMAL_EXIT = 0, // Normal termination. Keep it *always* zero. + NORMAL_EXIT = process_util::PROCESS_END_NORMAL_TERMINATON, + TASKMAN_KILL = process_util::PROCESS_END_KILLED_BY_USER, + HUNG = process_util::PROCESS_END_PROCESS_WAS_HUNG, INVALID_CMDLINE_URL, // An invalid command line url was given. SBOX_INIT_FAILED, // The sandbox could not be initialized. GOOGLE_UPDATE_INIT_FAILED, // The Google Update client stub init failed. @@ -35,7 +39,6 @@ class ResultCodes { UNSUPPORTED_PARAM, // Command line parameter is not supported. KILLED_BAD_MESSAGE, // A bad message caused the process termination. IMPORTER_CANCEL, // The user canceled the browser import. - HUNG, // Browser was hung and killed. IMPORTER_HUNG, // Browser import hung and was killed. EXIT_LAST_CODE // Last return code (keep it last). }; |