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

Unified Diff: chrome/browser/password_manager/password_store_mac_internal.h

Issue 19775014: [Passwords, Mac] Don't always prompt to access passwords saved by other browsers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/browser/password_manager/password_store_mac_internal.h
diff --git a/chrome/browser/password_manager/password_store_mac_internal.h b/chrome/browser/password_manager/password_store_mac_internal.h
index b7a2be49fca5dc1a7871226addcef97f36ee4821..4f677679e87ff9e9b8d3deceed3ab00d367f06c6 100644
--- a/chrome/browser/password_manager/password_store_mac_internal.h
+++ b/chrome/browser/password_manager/password_store_mac_internal.h
@@ -26,7 +26,9 @@ class MacKeychainPasswordFormAdapter {
// Returns PasswordForms for each keychain entry that could be used to fill
// |form|. Caller is responsible for deleting the returned forms.
std::vector<content::PasswordForm*> PasswordsFillingForm(
- const content::PasswordForm& query_form);
+ const content::PasswordForm& query_form,
+ PasswordStore::AuthorizationPromptPermission
+ authorization_prompt_permission);
// Returns PasswordForms for each keychain entry that could be merged with
// |form|. Differs from PasswordsFillingForm in that the username must match.
@@ -39,7 +41,9 @@ class MacKeychainPasswordFormAdapter {
// no such entry.
// Caller is responsible for deleting the returned form.
content::PasswordForm* PasswordExactlyMatchingForm(
- const content::PasswordForm& query_form);
+ const content::PasswordForm& query_form,
+ PasswordStore::AuthorizationPromptPermission
+ authorization_prompt_permission);
// Returns true if PasswordsMergeableWithForm would return any items. This is
// a separate method because calling PasswordsMergeableWithForm and checking
@@ -69,7 +73,9 @@ class MacKeychainPasswordFormAdapter {
// AppleKeychain::Free on all of the keychain items and clearing the vector.
// Caller is responsible for deleting the returned forms.
std::vector<content::PasswordForm*> ConvertKeychainItemsToForms(
- std::vector<SecKeychainItemRef>* items);
+ std::vector<SecKeychainItemRef>* items,
+ PasswordStore::AuthorizationPromptPermission
+ authorization_prompt_permission);
// Searches |keychain| for the specific keychain entry that corresponds to the
// given form, and returns it (or NULL if no match is found). The caller is

Powered by Google App Engine
This is Rietveld 408576698