Chromium Code Reviews| Index: chrome/browser/password_manager/password_manager_delegate_impl.cc |
| diff --git a/chrome/browser/password_manager/password_manager_delegate_impl.cc b/chrome/browser/password_manager/password_manager_delegate_impl.cc |
| index 6360be4dd21e0fd1058a7a71b22aa46586687437..76b273890bf8e5e686f56b15d2e865b502784142 100644 |
| --- a/chrome/browser/password_manager/password_manager_delegate_impl.cc |
| +++ b/chrome/browser/password_manager/password_manager_delegate_impl.cc |
| @@ -150,6 +150,12 @@ void PasswordManagerDelegateImpl::AddSavePasswordInfoBarIfPermitted( |
| } |
| #endif |
| + // Don't show the password manager infobar if this form corresponds to |
| + // SpdyProxy authentication, as indicated by the realm. |
|
Ilya Sherman
2012/09/24 23:47:25
What is the user action that would reach this code
Michael Piatek
2012/09/25 19:28:14
This is designed to suppress the 'remember the pas
Ilya Sherman
2012/09/25 22:31:07
Can you describe more what "this authentication ty
Michael Piatek
2012/09/26 23:08:34
moved this to password_manager.cc per discussion
|
| + if (form_to_save->realm().find("/SpdyProxy") != std::string::npos) { |
|
Ilya Sherman
2012/09/24 23:47:25
nit: Please define a constant for this string. Al
Michael Piatek
2012/09/25 19:28:14
Done. (Checked for a suffix match, since the full
|
| + return; |
| + } |
|
Ilya Sherman
2012/09/24 23:47:25
nit: No need for curly braces.
Michael Piatek
2012/09/25 19:28:14
Done.
|
| + |
| tab_contents_->infobar_tab_helper()->AddInfoBar( |
| new SavePasswordInfoBarDelegate( |
| tab_contents_->infobar_tab_helper(), form_to_save)); |