Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / kiosk_enable_screen.cc
blob1a285a9950b7c67cd34f634e640ef2e05f9b2674
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_enable_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 KioskEnableScreen::KioskEnableScreen(BaseScreenDelegate* base_screen_delegate,
15 KioskEnableScreenActor* actor)
16 : BaseScreen(base_screen_delegate), actor_(actor) {
17 DCHECK(actor_);
18 if (actor_)
19 actor_->SetDelegate(this);
22 KioskEnableScreen::~KioskEnableScreen() {
23 if (actor_)
24 actor_->SetDelegate(NULL);
27 void KioskEnableScreen::Show() {
28 if (actor_)
29 actor_->Show();
32 std::string KioskEnableScreen::GetName() const {
33 return WizardController::kKioskEnableScreenName;
36 void KioskEnableScreen::OnExit() {
37 Finish(BaseScreenDelegate::KIOSK_ENABLE_COMPLETED);
40 void KioskEnableScreen::OnActorDestroyed(KioskEnableScreenActor* actor) {
41 if (actor_ == actor)
42 actor_ = NULL;
45 } // namespace chromeos