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

Unified Diff: components/policy/core/common/registry_dict_win.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: components/policy/core/common/registry_dict_win.cc
diff --git a/components/policy/core/common/registry_dict_win.cc b/components/policy/core/common/registry_dict_win.cc
index 61657b8575f6d631bc40b0ff227114e20e582d30..c1b442a705b28c2a65667a6bffc5e688c6eb05a5 100644
--- a/components/policy/core/common/registry_dict_win.cc
+++ b/components/policy/core/common/registry_dict_win.cc
@@ -243,7 +243,7 @@ void RegistryDict::ReadRegistry(HKEY hive, const base::string16& root) {
ClearValues();
// First, read all the values of the key.
- for (RegistryValueIterator it(hive, root.c_str()); it.Valid(); ++it) {
+ for (RegistryValueIterator it(hive, root.c_str(), 0); it.Valid(); ++it) {
const std::string name = base::UTF16ToUTF8(it.Name());
switch (it.Type()) {
case REG_SZ:
@@ -282,7 +282,7 @@ void RegistryDict::ReadRegistry(HKEY hive, const base::string16& root) {
}
// Recurse for all subkeys.
- for (RegistryKeyIterator it(hive, root.c_str()); it.Valid(); ++it) {
+ for (RegistryKeyIterator it(hive, root.c_str(), 0); it.Valid(); ++it) {
std::string name(base::UTF16ToUTF8(it.Name()));
scoped_ptr<RegistryDict> subdict(new RegistryDict());
subdict->ReadRegistry(hive, root + L"\\" + it.Name());

Powered by Google App Engine
This is Rietveld 408576698