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

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

Issue 10913238: SPDY proxy authentication support. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move browser/spdyproxy to browser/net/spdyproxy. Created 8 years, 3 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
« no previous file with comments | « chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698