| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/enable_debugging_screen.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" | 8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" |
| 9 #include "chrome/browser/chromeos/login/wizard_controller.h" | 9 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 if (view_) | 28 if (view_) |
| 29 view_->Show(); | 29 view_->Show(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void EnableDebuggingScreen::Hide() { | 32 void EnableDebuggingScreen::Hide() { |
| 33 if (view_) | 33 if (view_) |
| 34 view_->Hide(); | 34 view_->Hide(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void EnableDebuggingScreen::OnExit(bool success) { | 37 void EnableDebuggingScreen::OnExit(bool success) { |
| 38 Finish(success ? BaseScreenDelegate::ENABLE_DEBUGGING_FINISHED : | 38 Finish(success ? ScreenExitCode::ENABLE_DEBUGGING_FINISHED |
| 39 BaseScreenDelegate::ENABLE_DEBUGGING_CANCELED); | 39 : ScreenExitCode::ENABLE_DEBUGGING_CANCELED); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void EnableDebuggingScreen::OnViewDestroyed(EnableDebuggingScreenView* view) { | 42 void EnableDebuggingScreen::OnViewDestroyed(EnableDebuggingScreenView* view) { |
| 43 if (view_ == view) | 43 if (view_ == view) |
| 44 view_ = NULL; | 44 view_ = NULL; |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace chromeos | 47 } // namespace chromeos |
| OLD | NEW |