Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1334)

Unified Diff: base/registry.cc

Issue 3100001: Cleanup Registry API part 2: (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/registry.h ('k') | chrome/installer/util/create_reg_key_work_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/registry.cc
diff --git a/base/registry.cc b/base/registry.cc
index d4158df6845313890011065fc710cfe8aab56978..0040e1a9e785dd93479c122ecddc3c922430be9d 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_) {
« no previous file with comments | « base/registry.h ('k') | chrome/installer/util/create_reg_key_work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698