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

Unified Diff: components/autofill/core/browser/autofill_ie_toolbar_import_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/autofill/core/browser/autofill_ie_toolbar_import_win.cc
diff --git a/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc b/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc
index 8e2b327aefc2da5cbddf9da554f194ecd14da307..272543b436b4553ab37e61836cd4ca1ce76da865 100644
--- a/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc
+++ b/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc
@@ -257,7 +257,8 @@ bool ImportCurrentUserProfiles(const std::string& app_locale,
}
base::win::RegistryKeyIterator iterator_profiles(HKEY_CURRENT_USER,
- kProfileKey);
+ kProfileKey,
+ 0);
for (; iterator_profiles.Valid(); ++iterator_profiles) {
std::wstring key_name(kProfileKey);
key_name.append(L"\\");
@@ -280,8 +281,8 @@ bool ImportCurrentUserProfiles(const std::string& app_locale,
// We import CC profiles only if they are not password protected.
if (password_hash.empty() && IsEmptySalt(salt)) {
- base::win::RegistryKeyIterator iterator_cc(HKEY_CURRENT_USER,
- kCreditCardKey);
+ base::win::RegistryKeyIterator iterator_cc(
+ HKEY_CURRENT_USER, kCreditCardKey, 0);
for (; iterator_cc.Valid(); ++iterator_cc) {
std::wstring key_name(kCreditCardKey);
key_name.append(L"\\");

Powered by Google App Engine
This is Rietveld 408576698