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

Unified Diff: chrome/installer/util/app_commands.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/app_commands.cc
diff --git a/chrome/installer/util/app_commands.cc b/chrome/installer/util/app_commands.cc
index de7dcc266ebbb4a414f11c01b1c9f622bc1aaedd..4f98a4fac448ef72daba5b293866ff1497eb67a6 100644
--- a/chrome/installer/util/app_commands.cc
+++ b/chrome/installer/util/app_commands.cc
@@ -33,8 +33,10 @@ bool AppCommands::Initialize(const base::win::RegKey& key) {
RegKey cmd_key;
LONG result;
AppCommand command;
- for (RegistryKeyIterator key_iterator(key.Handle(), kEmptyString);
- key_iterator.Valid(); ++key_iterator) {
+ for (RegistryKeyIterator key_iterator(
+ key.Handle(), kEmptyString, KEY_WOW64_32KEY);
grt (UTC plus 2) 2014/10/01 17:14:30 this is ugly. it so happens that it's correct, but
Will Harris 2014/10/01 17:20:21 yes, and it's not by coincidence, I manually went
grt (UTC plus 2) 2014/10/01 17:33:49 I wish I did. The whys and wherefores for these ma
cpu_(ooo_6.6-7.5) 2014/10/06 19:48:57 you can have as many constructors as you need, in
Will Harris 2014/10/07 02:03:16 Done.
+ key_iterator.Valid();
+ ++key_iterator) {
const wchar_t* name = key_iterator.Name();
result = cmd_key.Open(key.Handle(), name, KEY_QUERY_VALUE);
if (result != ERROR_SUCCESS) {

Powered by Google App Engine
This is Rietveld 408576698