Index: chrome/browser/password_manager/password_store_mac.cc |
diff --git a/chrome/browser/password_manager/password_store_mac.cc b/chrome/browser/password_manager/password_store_mac.cc |
index 8037a8a662b961c084d506ad9850a241a0b78866..ccb9de39f8c547deb9dc0dbe9485a6adfd0681f2 100644 |
--- a/chrome/browser/password_manager/password_store_mac.cc |
+++ b/chrome/browser/password_manager/password_store_mac.cc |
@@ -20,6 +20,7 @@ |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/browser/chrome_notification_types.h" |
+#include "chrome/browser/mac/security_wrappers.h" |
#include "chrome/browser/password_manager/login_database.h" |
#include "chrome/browser/password_manager/password_store_change.h" |
#include "content/public/browser/notification_service.h" |
@@ -979,7 +980,11 @@ void PasswordStoreMac::RemoveLoginsCreatedBetweenImpl( |
void PasswordStoreMac::GetLoginsImpl( |
const autofill::PasswordForm& form, |
+ AuthorizationPromptPolicy prompt_policy, |
const ConsumerCallbackRunner& callback_runner) { |
+ chrome::ScopedSecKeychainSetUserInteractionAllowed user_interaction_allowed( |
+ prompt_policy == ALLOW_PROMPT); |
+ |
MacKeychainPasswordFormAdapter keychain_adapter(keychain_.get()); |
std::vector<PasswordForm*> keychain_forms = |
keychain_adapter.PasswordsFillingForm(form); |