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

Unified Diff: chrome/browser/ui/webui/options/personal_options_handler.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/ui/autologin_infobar_delegate.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/personal_options_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/personal_options_handler.cc (revision 98807)
+++ chrome/browser/ui/webui/options/personal_options_handler.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
+#include "base/command_line.h"
#include "base/path_service.h"
#include "base/stl_util.h"
#include "base/string_number_conversions.h"
@@ -314,9 +315,12 @@
web_ui_->CallJavascriptFunction("PersonalOptions.setSyncStatusErrorVisible",
*visible);
- visible.reset(Value::CreateBooleanValue(service->AreCredentialsAvailable()));
- web_ui_->CallJavascriptFunction("PersonalOptions.setAutoLoginVisible",
- *visible);
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAutologin)) {
+ visible.reset(Value::CreateBooleanValue(
+ service->AreCredentialsAvailable()));
+ web_ui_->CallJavascriptFunction("PersonalOptions.setAutoLoginVisible",
+ *visible);
+ }
// Set profile creation text and button if multi-profiles switch is on.
visible.reset(Value::CreateBooleanValue(multiprofile_));
« no previous file with comments | « chrome/browser/ui/autologin_infobar_delegate.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698