Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / enable_debugging_screen.cc
blob7f74832f0634d9ad6c6ea2446dac8e70ea9131bd
1 // Copyright (c) 2012 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/enable_debugging_screen.h"
7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
9 #include "chrome/browser/chromeos/login/wizard_controller.h"
11 namespace chromeos {
13 EnableDebuggingScreen::EnableDebuggingScreen(
14 BaseScreenDelegate* delegate,
15 EnableDebuggingScreenActor* actor)
16 : BaseScreen(delegate), actor_(actor) {
17 DCHECK(actor_);
18 if (actor_)
19 actor_->SetDelegate(this);
22 EnableDebuggingScreen::~EnableDebuggingScreen() {
23 if (actor_)
24 actor_->SetDelegate(NULL);
27 void EnableDebuggingScreen::PrepareToShow() {
28 if (actor_)
29 actor_->PrepareToShow();
32 void EnableDebuggingScreen::Show() {
33 if (actor_)
34 actor_->Show();
37 void EnableDebuggingScreen::Hide() {
38 if (actor_)
39 actor_->Hide();
42 std::string EnableDebuggingScreen::GetName() const {
43 return WizardController::kEnableDebuggingScreenName;
46 void EnableDebuggingScreen::OnExit(bool success) {
47 Finish(success ? BaseScreenDelegate::ENABLE_DEBUGGING_FINISHED :
48 BaseScreenDelegate::ENABLE_DEBUGGING_CANCELED);
51 void EnableDebuggingScreen::OnActorDestroyed(
52 EnableDebuggingScreenActor* actor) {
53 if (actor_ == actor)
54 actor_ = NULL;
57 } // namespace chromeos