From e2e94f957a14b62c2e2d618bf976d101c38d2dce Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Thu, 12 Aug 2010 00:36:02 +0000 Subject: Cleanup Registry API part 2: - Move destructor implementation to source file. - Remove the default argument used in CreateWithDisposition function. BUG=44644 TEST=trybots Review URL: http://codereview.chromium.org/3100001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55820 0039d316-1c4b-4281-b951-d872f2087c98 --- base/registry.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/registry.cc') diff --git a/base/registry.cc b/base/registry.cc index d4158df..0040e1a 100644 --- a/base/registry.cc +++ b/base/registry.cc @@ -145,6 +145,10 @@ RegKey::RegKey(HKEY rootkey, const wchar_t* subkey, REGSAM access) } } +RegKey::~RegKey() { + Close(); +} + void RegKey::Close() { StopWatching(); if (key_) { -- cgit v1.1