| OLD | NEW |
| 1 // Copyright (c) 2011 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 if (page_is_ready()) | 55 if (page_is_ready()) |
| 56 Initialize(); | 56 Initialize(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void EulaScreenHandler::GetLocalizedStrings( | 59 void EulaScreenHandler::GetLocalizedStrings( |
| 60 base::DictionaryValue* localized_strings) { | 60 base::DictionaryValue* localized_strings) { |
| 61 localized_strings->SetString("eulaScreenTitle", | 61 localized_strings->SetString("eulaScreenTitle", |
| 62 l10n_util::GetStringUTF16(IDS_EULA_SCREEN_TITLE)); | 62 l10n_util::GetStringUTF16(IDS_EULA_SCREEN_TITLE)); |
| 63 localized_strings->SetString("checkboxLogging", | 63 localized_strings->SetString("checkboxLogging", |
| 64 l10n_util::GetStringUTF16(IDS_EULA_CHECKBOX_ENABLE_LOGGING)); | 64 l10n_util::GetStringUTF16(IDS_EULA_CHECKBOX_ENABLE_LOGGING)); |
| 65 localized_strings->SetString("learnMore", | |
| 66 l10n_util::GetStringUTF16(IDS_LEARN_MORE)); | |
| 67 localized_strings->SetString("back", | 65 localized_strings->SetString("back", |
| 68 l10n_util::GetStringUTF16(IDS_EULA_BACK_BUTTON)); | 66 l10n_util::GetStringUTF16(IDS_EULA_BACK_BUTTON)); |
| 69 localized_strings->SetString("acceptAgreement", | 67 localized_strings->SetString("acceptAgreement", |
| 70 l10n_util::GetStringUTF16(IDS_EULA_ACCEPT_AND_CONTINUE_BUTTON)); | 68 l10n_util::GetStringUTF16(IDS_EULA_ACCEPT_AND_CONTINUE_BUTTON)); |
| 71 localized_strings->SetString("eulaSystemSecuritySetting", | 69 localized_strings->SetString("eulaSystemSecuritySetting", |
| 72 l10n_util::GetStringUTF16(IDS_EULA_SYSTEM_SECURITY_SETTING)); | 70 l10n_util::GetStringUTF16(IDS_EULA_SYSTEM_SECURITY_SETTING)); |
| 73 localized_strings->SetString("eulaTpmDesc", | 71 localized_strings->SetString("eulaTpmDesc", |
| 74 l10n_util::GetStringUTF16(IDS_EULA_SYSTEM_SECURITY_SETTING_DESCRIPTION)); | 72 l10n_util::GetStringUTF16(IDS_EULA_SYSTEM_SECURITY_SETTING_DESCRIPTION)); |
| 75 localized_strings->SetString("eulaTpmKeyDesc", | 73 localized_strings->SetString("eulaTpmKeyDesc", |
| 76 l10n_util::GetStringUTF16( | 74 l10n_util::GetStringUTF16( |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 help_app_->ShowHelpTopic(HelpAppLauncher::HELP_STATS_USAGE); | 139 help_app_->ShowHelpTopic(HelpAppLauncher::HELP_STATS_USAGE); |
| 142 } | 140 } |
| 143 | 141 |
| 144 void EulaScreenHandler::HandleOnTpmPopupOpened(const base::ListValue* args) { | 142 void EulaScreenHandler::HandleOnTpmPopupOpened(const base::ListValue* args) { |
| 145 if (!delegate_) | 143 if (!delegate_) |
| 146 return; | 144 return; |
| 147 delegate_->InitiatePasswordFetch(); | 145 delegate_->InitiatePasswordFetch(); |
| 148 } | 146 } |
| 149 | 147 |
| 150 } // namespace chromeos | 148 } // namespace chromeos |
| OLD | NEW |