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

Unified Diff: chrome/installer/util/shell_util.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: chrome/installer/util/shell_util.cc
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index 1e67163d9173198f8f002a714d59d160dfbf932c..0793037c71ad21d130da69202d023d6b762c2c7b 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -1653,8 +1653,9 @@ void ShellUtil::GetRegisteredBrowsers(
const HKEY roots[] = { HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER };
for (int i = 0; i < arraysize(roots); ++i) {
const HKEY root = roots[i];
- for (base::win::RegistryKeyIterator iter(root, base_key.c_str());
- iter.Valid(); ++iter) {
+ for (base::win::RegistryKeyIterator iter(root, base_key.c_str(), 0);
+ iter.Valid();
+ ++iter) {
client_path.assign(base_key).append(1, L'\\').append(iter.Name());
// Read the browser's name (localized according to install language).
if (key.Open(root, client_path.c_str(),

Powered by Google App Engine
This is Rietveld 408576698