diff options
author | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-12 21:57:15 +0000 |
---|---|---|
committer | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-12 21:57:15 +0000 |
commit | 718e922a6d41e4465a11ac9536240878394c1626 (patch) | |
tree | a6c486d368eea66baad720f507b67b9e898ed279 /chrome/installer/util/util_constants.h | |
parent | 120d8a7558b8d44348ece290437e2b235c72e054 (diff) | |
download | chromium_src-718e922a6d41e4465a11ac9536240878394c1626.zip chromium_src-718e922a6d41e4465a11ac9536240878394c1626.tar.gz chromium_src-718e922a6d41e4465a11ac9536240878394c1626.tar.bz2 |
Exit the installer gracefully if the processor doesn't support SSE2.
This change builds the files in chrome/installer/setup targeting older
CPUs so that setup.exe can safely probe the CPU and exit early with a
well-defined process exit code if the processor doens't support SSE2.
BUG=350175
R=cpu@chromium.org
Review URL: https://codereview.chromium.org/197403004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256668 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/util_constants.h')
-rw-r--r-- | chrome/installer/util/util_constants.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/installer/util/util_constants.h b/chrome/installer/util/util_constants.h index dffd88cf..d8ab60a 100644 --- a/chrome/installer/util/util_constants.h +++ b/chrome/installer/util/util_constants.h @@ -89,12 +89,13 @@ enum InstallStatus { // in use. UNUSED_BINARIES_UNINSTALLED, // 52. The binaries were uninstalled. UNSUPPORTED_OPTION, // 53. An unsupported legacy option was given. + CPU_NOT_SUPPORTED, // 54. Current OS not supported // Friendly reminder: note the COMPILE_ASSERT below. }; // Existing InstallStatus values must not change. Always add to the end. -COMPILE_ASSERT(installer::UNSUPPORTED_OPTION == 53, +COMPILE_ASSERT(installer::CPU_NOT_SUPPORTED == 54, dont_change_enum); // The type of an update archive. |