| 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/options/password_manager_handler.h" | 5 #include "chrome/browser/ui/webui/options/password_manager_handler.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 void PasswordManagerHandler::GetLocalizedValues( | 33 void PasswordManagerHandler::GetLocalizedValues( |
| 34 DictionaryValue* localized_strings) { | 34 DictionaryValue* localized_strings) { |
| 35 DCHECK(localized_strings); | 35 DCHECK(localized_strings); |
| 36 | 36 |
| 37 static const OptionsStringResource resources[] = { | 37 static const OptionsStringResource resources[] = { |
| 38 { "savedPasswordsTitle", | 38 { "savedPasswordsTitle", |
| 39 IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE }, | 39 IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE }, |
| 40 { "passwordExceptionsTitle", | 40 { "passwordExceptionsTitle", |
| 41 IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE }, | 41 IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE }, |
| 42 { "passwordSearchPlaceholder", |
| 43 IDS_PASSWORDS_PAGE_SEARCH_PASSWORDS }, |
| 42 { "passwordShowButton", | 44 { "passwordShowButton", |
| 43 IDS_PASSWORDS_PAGE_VIEW_SHOW_BUTTON }, | 45 IDS_PASSWORDS_PAGE_VIEW_SHOW_BUTTON }, |
| 44 { "passwordHideButton", | 46 { "passwordHideButton", |
| 45 IDS_PASSWORDS_PAGE_VIEW_HIDE_BUTTON }, | 47 IDS_PASSWORDS_PAGE_VIEW_HIDE_BUTTON }, |
| 46 { "passwordsSiteColumn", | 48 { "passwordsSiteColumn", |
| 47 IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN }, | 49 IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN }, |
| 48 { "passwordsUsernameColumn", | 50 { "passwordsUsernameColumn", |
| 49 IDS_PASSWORDS_PAGE_VIEW_USERNAME_COLUMN }, | 51 IDS_PASSWORDS_PAGE_VIEW_USERNAME_COLUMN }, |
| 50 { "passwordsRemoveButton", | 52 { "passwordsRemoveButton", |
| 51 IDS_PASSWORDS_PAGE_VIEW_REMOVE_BUTTON }, | 53 IDS_PASSWORDS_PAGE_VIEW_REMOVE_BUTTON }, |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 OnPasswordStoreRequestDone( | 245 OnPasswordStoreRequestDone( |
| 244 CancelableRequestProvider::Handle handle, | 246 CancelableRequestProvider::Handle handle, |
| 245 const std::vector<webkit_glue::PasswordForm*>& result) { | 247 const std::vector<webkit_glue::PasswordForm*>& result) { |
| 246 DCHECK_EQ(pending_login_query_, handle); | 248 DCHECK_EQ(pending_login_query_, handle); |
| 247 pending_login_query_ = 0; | 249 pending_login_query_ = 0; |
| 248 page_->password_exception_list_.reset(); | 250 page_->password_exception_list_.reset(); |
| 249 page_->password_exception_list_.insert(page_->password_exception_list_.end(), | 251 page_->password_exception_list_.insert(page_->password_exception_list_.end(), |
| 250 result.begin(), result.end()); | 252 result.begin(), result.end()); |
| 251 page_->SetPasswordExceptionList(); | 253 page_->SetPasswordExceptionList(); |
| 252 } | 254 } |
| OLD | NEW |