Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / kiosk_autolaunch_screen.cc
blob733dad7ec349ce132096c679e9d4ca929f9b270c
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/login/screens/kiosk_autolaunch_screen.h"
7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/customization/customization_document.h"
9 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
10 #include "chrome/browser/chromeos/login/wizard_controller.h"
12 namespace chromeos {
14 KioskAutolaunchScreen::KioskAutolaunchScreen(
15 BaseScreenDelegate* base_screen_delegate,
16 KioskAutolaunchScreenActor* actor)
17 : BaseScreen(base_screen_delegate), actor_(actor) {
18 DCHECK(actor_);
19 if (actor_)
20 actor_->SetDelegate(this);
23 KioskAutolaunchScreen::~KioskAutolaunchScreen() {
24 if (actor_)
25 actor_->SetDelegate(NULL);
28 void KioskAutolaunchScreen::Show() {
29 if (actor_)
30 actor_->Show();
33 std::string KioskAutolaunchScreen::GetName() const {
34 return WizardController::kKioskAutolaunchScreenName;
37 void KioskAutolaunchScreen::OnExit(bool confirmed) {
38 Finish(confirmed ? BaseScreenDelegate::KIOSK_AUTOLAUNCH_CONFIRMED
39 : BaseScreenDelegate::KIOSK_AUTOLAUNCH_CANCELED);
42 void KioskAutolaunchScreen::OnActorDestroyed(
43 KioskAutolaunchScreenActor* actor) {
44 if (actor_ == actor)
45 actor_ = NULL;
48 } // namespace chromeos