| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 NOTREACHED(); | 129 NOTREACHED(); |
| 130 | 130 |
| 131 if (!delegate_) | 131 if (!delegate_) |
| 132 return; | 132 return; |
| 133 | 133 |
| 134 delegate_->OnExit(accepted, is_usage_stats_checked); | 134 delegate_->OnExit(accepted, is_usage_stats_checked); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void EulaScreenHandler::HandleOnLearnMore(const base::ListValue* args) { | 137 void EulaScreenHandler::HandleOnLearnMore(const base::ListValue* args) { |
| 138 if (!help_app_.get()) { | 138 if (!help_app_.get()) { |
| 139 views::Widget* login_window = WebUILoginDisplay::GetLoginWindow(); | 139 help_app_ = new HelpAppLauncher(GetNativeWindow()); |
| 140 help_app_ = new HelpAppLauncher(login_window->GetNativeWindow()); | |
| 141 } | 140 } |
| 142 help_app_->ShowHelpTopic(HelpAppLauncher::HELP_STATS_USAGE); | 141 help_app_->ShowHelpTopic(HelpAppLauncher::HELP_STATS_USAGE); |
| 143 } | 142 } |
| 144 | 143 |
| 145 void EulaScreenHandler::HandleOnTpmPopupOpened(const base::ListValue* args) { | 144 void EulaScreenHandler::HandleOnTpmPopupOpened(const base::ListValue* args) { |
| 146 if (!delegate_) | 145 if (!delegate_) |
| 147 return; | 146 return; |
| 148 delegate_->InitiatePasswordFetch(); | 147 delegate_->InitiatePasswordFetch(); |
| 149 } | 148 } |
| 150 | 149 |
| 151 } // namespace chromeos | 150 } // namespace chromeos |
| OLD | NEW |