summaryrefslogtreecommitdiffstats
path: root/chrome_frame/utils.cc
diff options
context:
space:
mode:
authoramit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-04 14:23:52 +0000
committeramit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-04 14:23:52 +0000
commit75bfc84bd5d6efecd31b6f2ed4fc7a8023d0b3b7 (patch)
treefdae70ee45762c93fccadc30f006b5ebf1caef9b /chrome_frame/utils.cc
parent518d10843ce011f3b26a26144bfa3e7dad609288 (diff)
downloadchromium_src-75bfc84bd5d6efecd31b6f2ed4fc7a8023d0b3b7.zip
chromium_src-75bfc84bd5d6efecd31b6f2ed4fc7a8023d0b3b7.tar.gz
chromium_src-75bfc84bd5d6efecd31b6f2ed4fc7a8023d0b3b7.tar.bz2
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
Diffstat (limited to 'chrome_frame/utils.cc')
-rw-r--r--chrome_frame/utils.cc4
1 files changed, 2 insertions, 2 deletions
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;
}