| OLD | NEW |
| 1 // Copyright (c) 2012 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/options2/password_manager_handler2.h" | 5 #include "chrome/browser/ui/webui/options2/password_manager_handler2.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 { "savedPasswordsTitle", | 44 { "savedPasswordsTitle", |
| 45 IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE }, | 45 IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE }, |
| 46 { "passwordExceptionsTitle", | 46 { "passwordExceptionsTitle", |
| 47 IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE }, | 47 IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE }, |
| 48 { "passwordSearchPlaceholder", | 48 { "passwordSearchPlaceholder", |
| 49 IDS_PASSWORDS_PAGE_SEARCH_PASSWORDS }, | 49 IDS_PASSWORDS_PAGE_SEARCH_PASSWORDS }, |
| 50 { "passwordShowButton", | 50 { "passwordShowButton", |
| 51 IDS_PASSWORDS_PAGE_VIEW_SHOW_BUTTON }, | 51 IDS_PASSWORDS_PAGE_VIEW_SHOW_BUTTON }, |
| 52 { "passwordHideButton", | 52 { "passwordHideButton", |
| 53 IDS_PASSWORDS_PAGE_VIEW_HIDE_BUTTON }, | 53 IDS_PASSWORDS_PAGE_VIEW_HIDE_BUTTON }, |
| 54 { "passwordsSiteColumn", | |
| 55 IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN }, | |
| 56 { "passwordsUsernameColumn", | |
| 57 IDS_PASSWORDS_PAGE_VIEW_USERNAME_COLUMN }, | |
| 58 { "passwordsRemoveButton", | |
| 59 IDS_PASSWORDS_PAGE_VIEW_REMOVE_BUTTON }, | |
| 60 { "passwordsNoPasswordsDescription", | 54 { "passwordsNoPasswordsDescription", |
| 61 IDS_PASSWORDS_PAGE_VIEW_NO_PASSWORDS_DESCRIPTION }, | 55 IDS_PASSWORDS_PAGE_VIEW_NO_PASSWORDS_DESCRIPTION }, |
| 62 { "passwordsNoExceptionsDescription", | 56 { "passwordsNoExceptionsDescription", |
| 63 IDS_PASSWORDS_PAGE_VIEW_NO_EXCEPTIONS_DESCRIPTION }, | 57 IDS_PASSWORDS_PAGE_VIEW_NO_EXCEPTIONS_DESCRIPTION }, |
| 64 { "passwordsRemoveAllButton", | |
| 65 IDS_PASSWORDS_PAGE_VIEW_REMOVE_ALL_BUTTON }, | |
| 66 { "passwordsRemoveAllTitle", | |
| 67 IDS_PASSWORDS_PAGE_VIEW_CAPTION_DELETE_ALL_PASSWORDS }, | |
| 68 { "passwordsRemoveAllWarning", | |
| 69 IDS_PASSWORDS_PAGE_VIEW_TEXT_DELETE_ALL_PASSWORDS }, | |
| 70 }; | 58 }; |
| 71 | 59 |
| 72 RegisterStrings(localized_strings, resources, arraysize(resources)); | 60 RegisterStrings(localized_strings, resources, arraysize(resources)); |
| 73 RegisterTitle(localized_strings, "passwordsPage", | 61 RegisterTitle(localized_strings, "passwordsPage", |
| 74 IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE); | 62 IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE); |
| 75 | 63 |
| 76 localized_strings->SetString("passwordManagerLearnMoreURL", | 64 localized_strings->SetString("passwordManagerLearnMoreURL", |
| 77 chrome::kPasswordManagerLearnMoreURL); | 65 chrome::kPasswordManagerLearnMoreURL); |
| 78 } | 66 } |
| 79 | 67 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 const std::vector<webkit::forms::PasswordForm*>& result) { | 273 const std::vector<webkit::forms::PasswordForm*>& result) { |
| 286 DCHECK_EQ(pending_login_query_, handle); | 274 DCHECK_EQ(pending_login_query_, handle); |
| 287 pending_login_query_ = 0; | 275 pending_login_query_ = 0; |
| 288 page_->password_exception_list_.reset(); | 276 page_->password_exception_list_.reset(); |
| 289 page_->password_exception_list_.insert(page_->password_exception_list_.end(), | 277 page_->password_exception_list_.insert(page_->password_exception_list_.end(), |
| 290 result.begin(), result.end()); | 278 result.begin(), result.end()); |
| 291 page_->SetPasswordExceptionList(); | 279 page_->SetPasswordExceptionList(); |
| 292 } | 280 } |
| 293 | 281 |
| 294 } // namespace options2 | 282 } // namespace options2 |
| OLD | NEW |