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"\\"); |