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

Unified Diff: chrome/browser/ui/autologin_infobar_delegate.cc

Issue 7740083: Put pre- and auto-login behind flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/sync/signin_manager.cc ('k') | chrome/browser/ui/webui/options/personal_options_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/sync/signin_manager.cc ('k') | chrome/browser/ui/webui/options/personal_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698