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

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

Issue 106053008: [Mac] Passwords: Don't always prompt to access passwords saved by other browsers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix yet another compile failure. 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
diff --git a/chrome/browser/password_manager/password_manager.cc b/chrome/browser/password_manager/password_manager.cc
index d19428ef0fd3b849eed42d8d753f25c63b701160..f1a634748afdddeabd3c81cdc53b4c0e6a56bd85 100644
--- a/chrome/browser/password_manager/password_manager.cc
+++ b/chrome/browser/password_manager/password_manager.cc
@@ -326,7 +326,14 @@ void PasswordManager::OnPasswordFormsParsed(
*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