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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 if (key_event_listener_) | 237 if (key_event_listener_) |
238 key_event_listener_->RemoveCapsLockObserver(this); | 238 key_event_listener_->RemoveCapsLockObserver(this); |
239 } | 239 } |
240 | 240 |
241 void SigninScreenHandler::GetLocalizedStrings( | 241 void SigninScreenHandler::GetLocalizedStrings( |
242 DictionaryValue* localized_strings) { | 242 DictionaryValue* localized_strings) { |
243 localized_strings->SetString("signinScreenTitle", | 243 localized_strings->SetString("signinScreenTitle", |
244 l10n_util::GetStringUTF16(IDS_SIGNIN_SCREEN_TITLE)); | 244 l10n_util::GetStringUTF16(IDS_SIGNIN_SCREEN_TITLE)); |
245 localized_strings->SetString("passwordHint", | 245 localized_strings->SetString("passwordHint", |
246 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); | 246 l10n_util::GetStringUTF16(IDS_LOGIN_POD_EMPTY_PASSWORD_TEXT)); |
| 247 localized_strings->SetString("removeButtonAccessibleName", |
| 248 l10n_util::GetStringUTF16(IDS_LOGIN_POD_REMOVE_BUTTON_ACCESSIBLE_NAME)); |
247 localized_strings->SetString("passwordFieldAccessibleName", | 249 localized_strings->SetString("passwordFieldAccessibleName", |
248 l10n_util::GetStringUTF16(IDS_LOGIN_POD_PASSWORD_FIELD_ACCESSIBLE_NAME)); | 250 l10n_util::GetStringUTF16(IDS_LOGIN_POD_PASSWORD_FIELD_ACCESSIBLE_NAME)); |
249 localized_strings->SetString("signinButton", | 251 localized_strings->SetString("signinButton", |
250 l10n_util::GetStringUTF16(IDS_LOGIN_BUTTON)); | 252 l10n_util::GetStringUTF16(IDS_LOGIN_BUTTON)); |
251 localized_strings->SetString("enterGuestButton", | 253 localized_strings->SetString("enterGuestButton", |
252 l10n_util::GetStringUTF16(IDS_ENTER_GUEST_SESSION_BUTTON)); | 254 l10n_util::GetStringUTF16(IDS_ENTER_GUEST_SESSION_BUTTON)); |
253 localized_strings->SetString("enterGuestButtonAccessibleName", | 255 localized_strings->SetString("enterGuestButtonAccessibleName", |
254 l10n_util::GetStringUTF16( | 256 l10n_util::GetStringUTF16( |
255 IDS_ENTER_GUEST_SESSION_BUTTON_ACCESSIBLE_NAME)); | 257 IDS_ENTER_GUEST_SESSION_BUTTON_ACCESSIBLE_NAME)); |
256 localized_strings->SetString("shutDown", | 258 localized_strings->SetString("shutDown", |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 | 686 |
685 cookie_remover_ = new BrowsingDataRemover( | 687 cookie_remover_ = new BrowsingDataRemover( |
686 Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context()), | 688 Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context()), |
687 BrowsingDataRemover::EVERYTHING, | 689 BrowsingDataRemover::EVERYTHING, |
688 base::Time()); | 690 base::Time()); |
689 cookie_remover_->AddObserver(this); | 691 cookie_remover_->AddObserver(this); |
690 cookie_remover_->Remove(BrowsingDataRemover::REMOVE_SITE_DATA); | 692 cookie_remover_->Remove(BrowsingDataRemover::REMOVE_SITE_DATA); |
691 } | 693 } |
692 | 694 |
693 } // namespace chromeos | 695 } // namespace chromeos |
OLD | NEW |