summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/google_update_settings.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 17:02:14 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 17:02:14 +0000
commitac33674d8fe3a73a9cbf19807e999bd2bb787361 (patch)
tree73e0fbb054b38adc4d40c82224ecc64400c85257 /chrome/installer/util/google_update_settings.cc
parent6b073e60cf5e57e8ea1952787a32be3a21e66496 (diff)
downloadchromium_src-ac33674d8fe3a73a9cbf19807e999bd2bb787361.zip
chromium_src-ac33674d8fe3a73a9cbf19807e999bd2bb787361.tar.gz
chromium_src-ac33674d8fe3a73a9cbf19807e999bd2bb787361.tar.bz2
base/win: small improvement to RegKey API.
- Rename ValueExists() to HasValue(). - Rename ValueCount() to GetValueCount(). - Rename ReadName() to GetValueNameAt(). R=maruel@chromium.org,willchan@chromium.org Review URL: http://codereview.chromium.org/8337006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/google_update_settings.cc')
-rw-r--r--chrome/installer/util/google_update_settings.cc2
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 b79e61a..babd396 100644
--- a/chrome/installer/util/google_update_settings.cc
+++ b/chrome/installer/util/google_update_settings.cc
@@ -102,7 +102,7 @@ bool RemoveGoogleUpdateStrKey(const wchar_t* const name) {
BrowserDistribution* dist = BrowserDistribution::GetDistribution();
std::wstring reg_path = dist->GetStateKey();
RegKey key(HKEY_CURRENT_USER, reg_path.c_str(), KEY_READ | KEY_WRITE);
- if (!key.ValueExists(name))
+ if (!key.HasValue(name))
return true;
return (key.DeleteValue(name) == ERROR_SUCCESS);
}