| Index: chrome/browser/chromeos/login/ui/login_display_host_impl.cc
|
| diff --git a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
|
| index d14718a07fa62b1e359f2e849d93c037af3049e2..bb2ecb942062e732fa0ffdc44a365a9c44318134 100644
|
| --- a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
|
| +++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
|
| @@ -126,6 +126,9 @@ const char kUserAddingURL[] = "chrome://oobe/user-adding";
|
| // URL which corresponds to the app launch splash WebUI.
|
| const char kAppLaunchSplashURL[] = "chrome://oobe/app-launch-splash";
|
|
|
| +// URL which corresponds to the ARC kiosk splash WebUI.
|
| +const char kArcKioskSplashURL[] = "chrome://oobe/arc-kiosk-splash";
|
| +
|
| // Duration of sign-in transition animation.
|
| const int kLoginFadeoutTransitionDurationMs = 700;
|
|
|
| @@ -784,6 +787,25 @@ void LoginDisplayHostImpl::StartAppLaunch(const std::string& app_id,
|
| app_launch_controller_->StartAppLaunch(auto_launch);
|
| }
|
|
|
| +void LoginDisplayHostImpl::StartArcKiosk(const AccountId& account_id) {
|
| + VLOG(1) << "Login WebUI >> start ARC kiosk.";
|
| + SetStatusAreaVisible(false);
|
| +
|
| + // Animation is not supported in Mash.
|
| + if (!chrome::IsRunningInMash())
|
| + finalize_animation_type_ = ANIMATION_FADE_OUT;
|
| + if (!login_window_) {
|
| + LoadURL(GURL(kAppLaunchSplashURL));
|
| + LoadURL(GURL(kArcKioskSplashURL));
|
| + }
|
| +
|
| + login_view_->set_should_emit_login_prompt_visible(false);
|
| +
|
| + arc_kiosk_controller_.reset(new ArcKioskController(this, GetOobeUI()));
|
| +
|
| + arc_kiosk_controller_->StartArcKiosk(account_id);
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // LoginDisplayHostImpl, public
|
|
|
|
|