Skip to content

Instantly share code, notes, and snippets.

@jjgod
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjgod/11e83115927330b4498d to your computer and use it in GitHub Desktop.
Save jjgod/11e83115927330b4498d to your computer and use it in GitHub Desktop.
diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc
index e0b9bee..00d97c2 100644
--- a/components/password_manager/core/browser/password_manager.cc
+++ b/components/password_manager/core/browser/password_manager.cc
@@ -401,7 +401,8 @@ void PasswordManager::CreatePendingLoginManagers(
// relevant tags anyways (7/11/2014).
// http://crbug.com/178358
PasswordStore::AuthorizationPromptPolicy prompt_policy =
- PasswordStore::DISALLOW_PROMPT;
+ iter->scheme == PasswordForm::SCHEME_HTML
+ ? PasswordStore::DISALLOW_PROMPT : PasswordStore::ALLOW_PROMPT;
manager->FetchMatchingLoginsFromPasswordStore(prompt_policy);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment