OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/options/password_manager_handler.h" | 5 #include "chrome/browser/dom_ui/options/password_manager_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 void PasswordManagerHandler::GetLocalizedValues( | 29 void PasswordManagerHandler::GetLocalizedValues( |
30 DictionaryValue* localized_strings) { | 30 DictionaryValue* localized_strings) { |
31 DCHECK(localized_strings); | 31 DCHECK(localized_strings); |
32 | 32 |
33 localized_strings->SetString("passwordsTitle", | 33 localized_strings->SetString("passwordsTitle", |
34 l10n_util::GetStringUTF16(IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE)); | 34 l10n_util::GetStringUTF16(IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE)); |
35 localized_strings->SetString("savedPasswordsTitle", | 35 localized_strings->SetString("savedPasswordsTitle", |
36 l10n_util::GetStringUTF16(IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE)); | 36 l10n_util::GetStringUTF16(IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE)); |
37 localized_strings->SetString("passwordExceptionsTitle", | 37 localized_strings->SetString("passwordExceptionsTitle", |
38 l10n_util::GetStringUTF16(IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE)); | 38 l10n_util::GetStringUTF16(IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE)); |
| 39 localized_strings->SetString("passwordShowButton", |
| 40 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_SHOW_BUTTON)); |
| 41 localized_strings->SetString("passwordHideButton", |
| 42 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_HIDE_BUTTON)); |
39 localized_strings->SetString("passwordsSiteColumn", | 43 localized_strings->SetString("passwordsSiteColumn", |
40 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN)); | 44 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN)); |
41 localized_strings->SetString("passwordsUsernameColumn", | 45 localized_strings->SetString("passwordsUsernameColumn", |
42 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_USERNAME_COLUMN)); | 46 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_USERNAME_COLUMN)); |
43 localized_strings->SetString("passwordsRemoveButton", | 47 localized_strings->SetString("passwordsRemoveButton", |
44 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_REMOVE_BUTTON)); | 48 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_REMOVE_BUTTON)); |
45 localized_strings->SetString("passwordsRemoveAllButton", | 49 localized_strings->SetString("passwordsRemoveAllButton", |
46 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_REMOVE_ALL_BUTTON)); | 50 l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_VIEW_REMOVE_ALL_BUTTON)); |
47 localized_strings->SetString("passwordsRemoveAllTitle", | 51 localized_strings->SetString("passwordsRemoveAllTitle", |
48 l10n_util::GetStringUTF16( | 52 l10n_util::GetStringUTF16( |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 181 } |
178 | 182 |
179 void PasswordManagerHandler::PasswordExceptionListPopulater:: | 183 void PasswordManagerHandler::PasswordExceptionListPopulater:: |
180 OnPasswordStoreRequestDone(int handle, | 184 OnPasswordStoreRequestDone(int handle, |
181 const std::vector<webkit_glue::PasswordForm*>& result) { | 185 const std::vector<webkit_glue::PasswordForm*>& result) { |
182 DCHECK_EQ(pending_login_query_, handle); | 186 DCHECK_EQ(pending_login_query_, handle); |
183 pending_login_query_ = 0; | 187 pending_login_query_ = 0; |
184 page_->password_exception_list_ = result; | 188 page_->password_exception_list_ = result; |
185 page_->SetPasswordExceptionList(); | 189 page_->SetPasswordExceptionList(); |
186 } | 190 } |
OLD | NEW |