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

Unified Diff: chrome/browser/password_manager/password_manager.cc

Issue 99303009: Merge 241255 "[Mac] Passwords: Don't always prompt to access pas..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 7 years 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_manager.cc
===================================================================
--- chrome/browser/password_manager/password_manager.cc (revision 241838)
+++ chrome/browser/password_manager/password_manager.cc (working copy)
@@ -326,7 +326,14 @@
*iter,
ssl_valid);
pending_login_managers_.push_back(manager);
- manager->FetchMatchingLoginsFromPasswordStore();
+
+ // Avoid prompting the user for access to a password if they don't have
+ // password saving enabled.
+ PasswordStore::AuthorizationPromptPolicy prompt_policy =
+ *password_manager_enabled_ ? PasswordStore::ALLOW_PROMPT
+ : PasswordStore::DISALLOW_PROMPT;
+
+ manager->FetchMatchingLoginsFromPasswordStore(prompt_policy);
}
}

Powered by Google App Engine
This is Rietveld 408576698