summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 02:28:56 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 02:28:56 +0000
commit1abbd4aa7ee407983d2a824f009966af9d06c870 (patch)
tree9bb8e1f8f12bfdc43e4dfe70cbeca6bc8ee6815a /chrome/installer/setup
parente16a3270792ec9470279c982e31e72d32ec01dc8 (diff)
downloadchromium_src-1abbd4aa7ee407983d2a824f009966af9d06c870.zip
chromium_src-1abbd4aa7ee407983d2a824f009966af9d06c870.tar.gz
chromium_src-1abbd4aa7ee407983d2a824f009966af9d06c870.tar.bz2
Improve my last change about informing google update about eula.
- Feedback from ddorwin: 1- Use the right set of permisions for the reg key 2- Only touch the key if user acepted the eula BUG=1594565 Review URL: http://codereview.chromium.org/42168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup')
-rw-r--r--chrome/installer/setup/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/installer/setup/main.cc b/chrome/installer/setup/main.cc
index c88d289..9db35e0 100644
--- a/chrome/installer/setup/main.cc
+++ b/chrome/installer/setup/main.cc
@@ -546,7 +546,8 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance,
// then the dialog is shown and regardless of the outcome setup exits here.
if (parsed_command_line.HasSwitch(installer_util::switches::kShowEula)) {
installer_util::InstallStatus eula = ShowEULADialog();
- GoogleUpdateSettings::SetEULAConsent(installer_util::EULA_REJECTED != eula);
+ if (installer_util::EULA_REJECTED != eula)
+ GoogleUpdateSettings::SetEULAConsent(true);
return eula;
}