From 75bfc84bd5d6efecd31b6f2ed4fc7a8023d0b3b7 Mon Sep 17 00:00:00 2001 From: "amit@chromium.org" Date: Thu, 4 Feb 2010 14:23:52 +0000 Subject: Fix Navigation failed test Also fix a bug in SetConfigInt to create the 'ChromeFrame' config key if it does not exist. BUG=24104 TEST=CFACWithChrome.NavigateFailed Review URL: http://codereview.chromium.org/560041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38103 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome_frame/utils.cc') diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc index ae7a0d9..620865d 100644 --- a/chrome_frame/utils.cc +++ b/chrome_frame/utils.cc @@ -601,8 +601,8 @@ bool GetConfigBool(bool default_value, const wchar_t* value_name) { bool SetConfigInt(const wchar_t* value_name, int value) { RegKey config_key; - if (config_key.Open(HKEY_CURRENT_USER, kChromeFrameConfigKey, - KEY_SET_VALUE)) { + if (config_key.Create(HKEY_CURRENT_USER, kChromeFrameConfigKey, + KEY_SET_VALUE)) { if (config_key.WriteValue(value_name, value)) { return true; } -- cgit v1.1