summaryrefslogtreecommitdiffstats
path: root/chrome/browser/platform_util_win.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 20:01:32 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 20:01:32 +0000
commit33caa325d159e5bb1f1fbcd731236e6c9f8eac12 (patch)
tree2c6216a7f31da9b8b810fdd6d87e6273549080fe /chrome/browser/platform_util_win.cc
parent051543b5c459c543657f3d6d6088eaf416bbb317 (diff)
downloadchromium_src-33caa325d159e5bb1f1fbcd731236e6c9f8eac12.zip
chromium_src-33caa325d159e5bb1f1fbcd731236e6c9f8eac12.tar.gz
chromium_src-33caa325d159e5bb1f1fbcd731236e6c9f8eac12.tar.bz2
Remove the default argument from RegKey::Open.
BUG=44644 TEST=base_unittests --gtest_filter=RegistryTest.* Review URL: http://codereview.chromium.org/3205007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/platform_util_win.cc')
-rw-r--r--chrome/browser/platform_util_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/platform_util_win.cc b/chrome/browser/platform_util_win.cc
index 5157cb4..d928a2d 100644
--- a/chrome/browser/platform_util_win.cc
+++ b/chrome/browser/platform_util_win.cc
@@ -113,7 +113,7 @@ void OpenExternal(const GURL& url) {
RegKey key;
std::wstring registry_path = ASCIIToWide(url.scheme()) +
L"\\shell\\open\\command";
- key.Open(HKEY_CLASSES_ROOT, registry_path.c_str());
+ key.Open(HKEY_CLASSES_ROOT, registry_path.c_str(), KEY_READ);
if (key.Valid()) {
DWORD size = 0;
key.ReadValue(NULL, NULL, &size);