From 33caa325d159e5bb1f1fbcd731236e6c9f8eac12 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Thu, 26 Aug 2010 20:01:32 +0000 Subject: 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 --- chrome/browser/platform_util_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/platform_util_win.cc') 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); -- cgit v1.1