Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2850)

Unified Diff: chrome/browser/policy/configuration_policy_provider_win.cc

Issue 3205007: Remove the default argument from RegKey::Open. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: fix nit Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/platform_util_win.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/configuration_policy_provider_win.cc
diff --git a/chrome/browser/policy/configuration_policy_provider_win.cc b/chrome/browser/policy/configuration_policy_provider_win.cc
index 2e5904e6ed5ba821ba22a8a8e5e1bb40768dd6f7..20b8f644af217113b3b33b6d4c6718d7d399506e 100644
--- a/chrome/browser/policy/configuration_policy_provider_win.cc
+++ b/chrome/browser/policy/configuration_policy_provider_win.cc
@@ -73,11 +73,11 @@ bool ConfigurationPolicyProviderWin::GetRegistryPolicyString(
}
// First try the global policy.
- if (!policy_key.Open(HKEY_LOCAL_MACHINE, location.c_str()) ||
+ if (!policy_key.Open(HKEY_LOCAL_MACHINE, location.c_str(), KEY_READ) ||
!policy_key.ReadValue(value_name.c_str(), 0, &value_size, &key_type)) {
policy_key.Close();
// Fall back on user-specific policy.
- if (!policy_key.Open(HKEY_CURRENT_USER, location.c_str()) ||
+ if (!policy_key.Open(HKEY_CURRENT_USER, location.c_str(), KEY_READ) ||
!policy_key.ReadValue(value_name.c_str(), 0, &value_size, &key_type)) {
return false;
}
« no previous file with comments | « chrome/browser/platform_util_win.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698