diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 02:28:56 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 02:28:56 +0000 |
commit | 1abbd4aa7ee407983d2a824f009966af9d06c870 (patch) | |
tree | 9bb8e1f8f12bfdc43e4dfe70cbeca6bc8ee6815a /chrome/installer/util | |
parent | e16a3270792ec9470279c982e31e72d32ec01dc8 (diff) | |
download | chromium_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/util')
-rw-r--r-- | chrome/installer/util/google_update_settings.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/installer/util/google_update_settings.cc b/chrome/installer/util/google_update_settings.cc index 4e04c3f..8da8adc 100644 --- a/chrome/installer/util/google_update_settings.cc +++ b/chrome/installer/util/google_update_settings.cc @@ -59,7 +59,7 @@ bool GoogleUpdateSettings::SetCollectStatsConsent(bool consented) { bool GoogleUpdateSettings::SetEULAConsent(bool consented) { std::wstring reg_path = GetClientStateKeyPath(true); - RegKey key(HKEY_LOCAL_MACHINE, reg_path.c_str(), KEY_READ | KEY_WRITE); + RegKey key(HKEY_LOCAL_MACHINE, reg_path.c_str(), KEY_READ | KEY_SET_VALUE); return key.WriteValue(google_update::kRegEULAAceptedField, consented? 1 : 0); } |