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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1947293002: Implement autofill Address and Credit Card lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 }; 588 };
589 AddLocalizedStringsBulk(html_source, localized_strings, 589 AddLocalizedStringsBulk(html_source, localized_strings,
590 arraysize(localized_strings)); 590 arraysize(localized_strings));
591 } 591 }
592 592
593 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { 593 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) {
594 LocalizedString localized_strings[] = { 594 LocalizedString localized_strings[] = {
595 {"passwordsAndAutofillPageTitle", 595 {"passwordsAndAutofillPageTitle",
596 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, 596 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE},
597 {"autofill", IDS_SETTINGS_AUTOFILL}, 597 {"autofill", IDS_SETTINGS_AUTOFILL},
598 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING},
599 {"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON},
600 {"creditCards", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_HEADING},
601 {"addCreditCard", IDS_SETTINGS_AUTOFILL_ADD_CREDIT_CARD_BUTTON},
602 {"creditCardType", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_TYPE_COLUMN_LABEL},
603 {"creditCardExpiration",
604 IDS_SETTINGS_AUTOFILL_CREDIT_CARD_EXPIRATION_COLUMN_LABEL},
598 {"autofillDetail", IDS_SETTINGS_AUTOFILL_DETAIL}, 605 {"autofillDetail", IDS_SETTINGS_AUTOFILL_DETAIL},
599 {"passwords", IDS_SETTINGS_PASSWORDS}, 606 {"passwords", IDS_SETTINGS_PASSWORDS},
600 {"passwordsDetail", IDS_SETTINGS_PASSWORDS_DETAIL}, 607 {"passwordsDetail", IDS_SETTINGS_PASSWORDS_DETAIL},
601 {"savedPasswordsHeading", IDS_SETTINGS_PASSWORDS_SAVED_HEADING}, 608 {"savedPasswordsHeading", IDS_SETTINGS_PASSWORDS_SAVED_HEADING},
602 {"passwordExceptionsHeading", IDS_SETTINGS_PASSWORDS_EXCEPTIONS_HEADING}, 609 {"passwordExceptionsHeading", IDS_SETTINGS_PASSWORDS_EXCEPTIONS_HEADING},
603 {"deletePasswordException", IDS_SETTINGS_PASSWORDS_DELETE_EXCEPTION}, 610 {"deletePasswordException", IDS_SETTINGS_PASSWORDS_DELETE_EXCEPTION},
604 {"passwordMenu", IDS_SETTINGS_PASSWORDS_MENU}, 611 {"passwordMenu", IDS_SETTINGS_PASSWORDS_MENU},
605 {"editPassword", IDS_SETTINGS_PASSWORDS_EDIT}, 612 {"editPassword", IDS_SETTINGS_PASSWORDS_EDIT},
606 {"removePassword", IDS_SETTINGS_PASSWORDS_REMOVE}, 613 {"removePassword", IDS_SETTINGS_PASSWORDS_REMOVE},
607 {"editPasswordTitle", IDS_SETTINGS_PASSWORDS_EDIT_TITLE}, 614 {"editPasswordTitle", IDS_SETTINGS_PASSWORDS_EDIT_TITLE},
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 #endif 981 #endif
975 AddUsersStrings(html_source); 982 AddUsersStrings(html_source);
976 AddWebContentStrings(html_source); 983 AddWebContentStrings(html_source);
977 984
978 policy_indicator::AddLocalizedStrings(html_source); 985 policy_indicator::AddLocalizedStrings(html_source);
979 986
980 html_source->SetJsonPath(kLocalizedStringsFile); 987 html_source->SetJsonPath(kLocalizedStringsFile);
981 } 988 }
982 989
983 } // namespace settings 990 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698