Commit 76950f2c authored by Jacob Dufault's avatar Jacob Dufault Committed by Commit Bot

cros: Enable views login

If there is a crash session manager will revert to webui. If there is a feature
missing the user can click a button on the shelf which will revert to webui.

Bug: 784495
Change-Id: I218b5a217941dfde51d1a78080ef4d9e30ca87d2
Reviewed-on: https://chromium-review.googlesource.com/972328
Commit-Queue: Jacob Dufault <jdufault@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552075}
parent 635c812a
......@@ -169,10 +169,9 @@ bool IsSidebarEnabled() {
}
bool IsUsingViewsLogin() {
// Only show views login if it is forced. If both switches are present use
// webui.
base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
return !cl->HasSwitch(kShowWebUiLogin) && cl->HasSwitch(kShowViewsLogin);
// Only show webui login if it is forced. If both switches are present use
// views.
return !base::CommandLine::ForCurrentProcess()->HasSwitch(kShowWebUiLogin);
}
bool IsUsingViewsLock() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment