Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: chrome/browser/ui/webui/options/password_manager_handler.cc

Issue 7061003: WebUI: properly internationalize the search cookies and search passwords placeholder text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/options/cookies_view_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/cookies_view_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698