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/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 localized_strings->SetString("addUserOfflineMessage", | 90 localized_strings->SetString("addUserOfflineMessage", |
91 l10n_util::GetStringUTF16(IDS_LOGIN_ERROR_ADD_USER_OFFLINE)); | 91 l10n_util::GetStringUTF16(IDS_LOGIN_ERROR_ADD_USER_OFFLINE)); |
92 localized_strings->SetString("offlineMessageTitle", | 92 localized_strings->SetString("offlineMessageTitle", |
93 l10n_util::GetStringUTF16(IDS_LOGIN_OFFLINE_TITLE)); | 93 l10n_util::GetStringUTF16(IDS_LOGIN_OFFLINE_TITLE)); |
94 localized_strings->SetString("offlineMessageBody", | 94 localized_strings->SetString("offlineMessageBody", |
95 l10n_util::GetStringUTF16(IDS_LOGIN_OFFLINE_MESSAGE)); | 95 l10n_util::GetStringUTF16(IDS_LOGIN_OFFLINE_MESSAGE)); |
96 localized_strings->SetString("createAccount", | 96 localized_strings->SetString("createAccount", |
97 l10n_util::GetStringUTF16(IDS_CREATE_ACCOUNT_BUTTON)); | 97 l10n_util::GetStringUTF16(IDS_CREATE_ACCOUNT_BUTTON)); |
98 localized_strings->SetString("guestSignin", | 98 localized_strings->SetString("guestSignin", |
99 l10n_util::GetStringUTF16(IDS_BROWSE_WITHOUT_SIGNING_IN_BUTTON)); | 99 l10n_util::GetStringUTF16(IDS_BROWSE_WITHOUT_SIGNING_IN_BUTTON)); |
| 100 localized_strings->SetString("removeUser", |
| 101 l10n_util::GetStringUTF16(IDS_LOGIN_REMOVE)); |
100 | 102 |
101 if (extension_driven_) | 103 if (extension_driven_) |
102 localized_strings->SetString("authType", "ext"); | 104 localized_strings->SetString("authType", "ext"); |
103 else | 105 else |
104 localized_strings->SetString("authType", "webui"); | 106 localized_strings->SetString("authType", "webui"); |
105 } | 107 } |
106 | 108 |
107 void SigninScreenHandler::Show(bool oobe_ui) { | 109 void SigninScreenHandler::Show(bool oobe_ui) { |
108 oobe_ui_ = oobe_ui; | 110 oobe_ui_ = oobe_ui; |
109 if (!page_is_ready()) { | 111 if (!page_is_ready()) { |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 base::FundamentalValue animated_value(animated); | 346 base::FundamentalValue animated_value(animated); |
345 web_ui_->CallJavascriptFunction("login.AccountPickerScreen.loadUsers", | 347 web_ui_->CallJavascriptFunction("login.AccountPickerScreen.loadUsers", |
346 users_list, animated_value); | 348 users_list, animated_value); |
347 } | 349 } |
348 | 350 |
349 void SigninScreenHandler::HandleCreateAccount(const base::ListValue* args) { | 351 void SigninScreenHandler::HandleCreateAccount(const base::ListValue* args) { |
350 delegate_->CreateAccount(); | 352 delegate_->CreateAccount(); |
351 } | 353 } |
352 | 354 |
353 } // namespace chromeos | 355 } // namespace chromeos |
OLD | NEW |