summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/registry.h2
-rw-r--r--chrome/installer/util/google_update_settings_unittest.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/base/registry.h b/base/registry.h
index b9427ea..6199362 100644
--- a/base/registry.h
+++ b/base/registry.h
@@ -24,7 +24,7 @@ class RegKey {
RegKey(HKEY rootkey, const wchar_t* subkey, REGSAM access);
~RegKey();
- bool Create(HKEY rootkey, const wchar_t* subkey, REGSAM access = KEY_READ);
+ bool Create(HKEY rootkey, const wchar_t* subkey, REGSAM access);
bool CreateWithDisposition(HKEY rootkey, const wchar_t* subkey,
DWORD* disposition, REGSAM access);
diff --git a/chrome/installer/util/google_update_settings_unittest.cc b/chrome/installer/util/google_update_settings_unittest.cc
index 11bd1fa..5b5d1e2 100644
--- a/chrome/installer/util/google_update_settings_unittest.cc
+++ b/chrome/installer/util/google_update_settings_unittest.cc
@@ -37,8 +37,8 @@ class GoogleUpdateSettingsTest: public testing::Test {
EXPECT_TRUE(err == ERROR_SUCCESS || err == ERROR_FILE_NOT_FOUND);
// Create the keys we're redirecting HKCU and HKLM to.
- ASSERT_TRUE(hkcu_.Create(HKEY_CURRENT_USER, kHKCUReplacement));
- ASSERT_TRUE(hklm_.Create(HKEY_CURRENT_USER, kHKLMReplacement));
+ ASSERT_TRUE(hkcu_.Create(HKEY_CURRENT_USER, kHKCUReplacement, KEY_READ));
+ ASSERT_TRUE(hklm_.Create(HKEY_CURRENT_USER, kHKLMReplacement, KEY_READ));
// And do the switcharoo.
ASSERT_EQ(ERROR_SUCCESS,