Index: chrome/browser/ui/autologin_infobar_delegate.cc |
=================================================================== |
--- chrome/browser/ui/autologin_infobar_delegate.cc (revision 98807) |
+++ chrome/browser/ui/autologin_infobar_delegate.cc (working copy) |
@@ -138,6 +138,11 @@ |
net::URLRequest* request, |
int child_id, |
int route_id) { |
+ if (!CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableAutologin)) { |
+ return; |
+ } |
+ |
// See if the response contains the X-Auto-Login header. If so, this was |
// a request for a login page, and the server is allowing the browser to |
// suggest auto-login, if available. |