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

Unified Diff: rlz/win/lib/rlz_value_store_registry.cc

Issue 616173003: Allow Registry Iterator functions to use a specified WOW64 mode when iterating. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: rlz/win/lib/rlz_value_store_registry.cc
diff --git a/rlz/win/lib/rlz_value_store_registry.cc b/rlz/win/lib/rlz_value_store_registry.cc
index 2b50767a4a85a551221c5daa08fd5c07ffa1b98e..88bfd9a3e6b00ae4b8a6036da8ead8df49d70eb1 100644
--- a/rlz/win/lib/rlz_value_store_registry.cc
+++ b/rlz/win/lib/rlz_value_store_registry.cc
@@ -142,11 +142,11 @@ bool DeleteKeyIfEmpty(HKEY root_key, const wchar_t* key_name) {
if (!key.Valid())
return true; // Key does not exist - nothing to do.
- base::win::RegistryKeyIterator key_iter(root_key, key_name);
+ base::win::RegistryKeyIterator key_iter(root_key, key_name, 0);
if (key_iter.SubkeyCount() > 0)
return true; // Not empty, so nothing to do
- base::win::RegistryValueIterator value_iter(root_key, key_name);
+ base::win::RegistryValueIterator value_iter(root_key, key_name, 0);
if (value_iter.ValueCount() > 0)
return true; // Not empty, so nothing to do
}

Powered by Google App Engine
This is Rietveld 408576698