summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 20:22:22 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 20:22:22 +0000
commitf696ed7b07e30ffd3d2d7f32f51a8a6c267dff8d (patch)
tree6b86edc52bf35ab4f9dcd08189b96677d0d4ac18
parent7745b82920b6a761f316c78a85e7af8742434f1c (diff)
downloadchromium_src-f696ed7b07e30ffd3d2d7f32f51a8a6c267dff8d.zip
chromium_src-f696ed7b07e30ffd3d2d7f32f51a8a6c267dff8d.tar.gz
chromium_src-f696ed7b07e30ffd3d2d7f32f51a8a6c267dff8d.tar.bz2
Forgot to use the correct enums on my previous distro CL
- as pointed by huanr TBR=huanr Review URL: http://codereview.chromium.org/19032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8746 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xchrome/installer/setup/main.cc8
-rwxr-xr-xchrome/installer/util/util_constants.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/chrome/installer/setup/main.cc b/chrome/installer/setup/main.cc
index 925d49a..b4fc90c 100755
--- a/chrome/installer/setup/main.cc
+++ b/chrome/installer/setup/main.cc
@@ -230,7 +230,7 @@ int GetInstallOptions(const CommandLine& cmd_line) {
// While there is a --show-eula command line flag, we don't process
// it in this function because it requires special handling.
if (preferences & installer_util::MASTER_PROFILE_REQUIRE_EULA)
- options |= installer_util::MASTER_PROFILE_REQUIRE_EULA;
+ options |= installer_util::SHOW_EULA_DIALOG;
}
if (preferences & installer_util::MASTER_PROFILE_CREATE_ALL_SHORTCUTS ||
@@ -497,12 +497,12 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance,
// Check if we need to show the EULA. There are two cases:
// 1- If it is passed as a command line (--show-eula), then the dialog is
// shown and regardless of the outcome setup exits here.
- // 2- If it is found in the installerdata file then the eula is shown
- // and the installation proceeds if the user acepts.
+ // 2- If it is found in the installerdata file then the EULA is shown
+ // and the installation proceeds if the user accepts.
if (parsed_command_line.HasSwitch(installer_util::switches::kShowEula)) {
return (ShowEULADialog() ?
installer_util::EULA_ACCEPTED : installer_util::EULA_REJECTED);
- } else if (installer_util::MASTER_PROFILE_REQUIRE_EULA & options) {
+ } else if (installer_util::SHOW_EULA_DIALOG & options) {
if (!ShowEULADialog())
return installer_util::EULA_REJECTED;
}
diff --git a/chrome/installer/util/util_constants.h b/chrome/installer/util/util_constants.h
index 0ad2ed1..4ee2af7 100755
--- a/chrome/installer/util/util_constants.h
+++ b/chrome/installer/util/util_constants.h
@@ -57,6 +57,8 @@ enum InstallOption {
SYSTEM_LEVEL = 0x1 << 5,
// Run installer in verbose mode.
VERBOSE_LOGGING = 0x1 << 6,
+ // Show the EULA dialog.
+ SHOW_EULA_DIALOG = 0x1 << 7
};
namespace switches {