| 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/ui/webui/chromeos/login/eula_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/eula_screen_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 model_(NULL), | 86 model_(NULL), |
| 87 core_oobe_actor_(core_oobe_actor), | 87 core_oobe_actor_(core_oobe_actor), |
| 88 show_on_init_(false) { | 88 show_on_init_(false) { |
| 89 } | 89 } |
| 90 | 90 |
| 91 EulaScreenHandler::~EulaScreenHandler() { | 91 EulaScreenHandler::~EulaScreenHandler() { |
| 92 if (model_) | 92 if (model_) |
| 93 model_->OnViewDestroyed(this); | 93 model_->OnViewDestroyed(this); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void EulaScreenHandler::PrepareToShow() { | |
| 97 } | |
| 98 | |
| 99 void EulaScreenHandler::Show() { | 96 void EulaScreenHandler::Show() { |
| 100 if (!page_is_ready()) { | 97 if (!page_is_ready()) { |
| 101 show_on_init_ = true; | 98 show_on_init_ = true; |
| 102 return; | 99 return; |
| 103 } | 100 } |
| 104 ShowScreen(OobeScreen::SCREEN_OOBE_EULA); | 101 ShowScreen(OobeScreen::SCREEN_OOBE_EULA); |
| 105 } | 102 } |
| 106 | 103 |
| 107 void EulaScreenHandler::Hide() { | 104 void EulaScreenHandler::Hide() { |
| 108 } | 105 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 IDS_ABOUT_VERSION_LICENSE_EULA, | 212 IDS_ABOUT_VERSION_LICENSE_EULA, |
| 216 GURL(chrome::kChromeUICreditsURL)); | 213 GURL(chrome::kChromeUICreditsURL)); |
| 217 } | 214 } |
| 218 | 215 |
| 219 void EulaScreenHandler::HandleOnInstallationSettingsPopupOpened() { | 216 void EulaScreenHandler::HandleOnInstallationSettingsPopupOpened() { |
| 220 if (model_) | 217 if (model_) |
| 221 model_->InitiatePasswordFetch(); | 218 model_->InitiatePasswordFetch(); |
| 222 } | 219 } |
| 223 | 220 |
| 224 } // namespace chromeos | 221 } // namespace chromeos |
| OLD | NEW |