| OLD | NEW |
| 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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 }; | 612 }; |
| 613 AddLocalizedStringsBulk(html_source, localized_strings, | 613 AddLocalizedStringsBulk(html_source, localized_strings, |
| 614 arraysize(localized_strings)); | 614 arraysize(localized_strings)); |
| 615 } | 615 } |
| 616 | 616 |
| 617 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { | 617 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { |
| 618 LocalizedString localized_strings[] = { | 618 LocalizedString localized_strings[] = { |
| 619 {"passwordsAndAutofillPageTitle", | 619 {"passwordsAndAutofillPageTitle", |
| 620 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, | 620 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, |
| 621 {"autofill", IDS_SETTINGS_AUTOFILL}, | 621 {"autofill", IDS_SETTINGS_AUTOFILL}, |
| 622 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING}, |
| 623 {"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON}, |
| 624 {"creditCards", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_HEADING}, |
| 625 {"addCreditCard", IDS_SETTINGS_AUTOFILL_ADD_CREDIT_CARD_BUTTON}, |
| 626 {"creditCardType", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_TYPE_COLUMN_LABEL}, |
| 627 {"creditCardExpiration", |
| 628 IDS_SETTINGS_AUTOFILL_CREDIT_CARD_EXPIRATION_COLUMN_LABEL}, |
| 622 {"autofillDetail", IDS_SETTINGS_AUTOFILL_DETAIL}, | 629 {"autofillDetail", IDS_SETTINGS_AUTOFILL_DETAIL}, |
| 623 {"passwords", IDS_SETTINGS_PASSWORDS}, | 630 {"passwords", IDS_SETTINGS_PASSWORDS}, |
| 624 {"passwordsDetail", IDS_SETTINGS_PASSWORDS_DETAIL}, | 631 {"passwordsDetail", IDS_SETTINGS_PASSWORDS_DETAIL}, |
| 625 {"savedPasswordsHeading", IDS_SETTINGS_PASSWORDS_SAVED_HEADING}, | 632 {"savedPasswordsHeading", IDS_SETTINGS_PASSWORDS_SAVED_HEADING}, |
| 626 {"passwordExceptionsHeading", IDS_SETTINGS_PASSWORDS_EXCEPTIONS_HEADING}, | 633 {"passwordExceptionsHeading", IDS_SETTINGS_PASSWORDS_EXCEPTIONS_HEADING}, |
| 627 {"deletePasswordException", IDS_SETTINGS_PASSWORDS_DELETE_EXCEPTION}, | 634 {"deletePasswordException", IDS_SETTINGS_PASSWORDS_DELETE_EXCEPTION}, |
| 628 {"passwordMenu", IDS_SETTINGS_PASSWORDS_MENU}, | 635 {"passwordMenu", IDS_SETTINGS_PASSWORDS_MENU}, |
| 629 {"editPassword", IDS_SETTINGS_PASSWORDS_EDIT}, | 636 {"editPassword", IDS_SETTINGS_PASSWORDS_EDIT}, |
| 630 {"removePassword", IDS_SETTINGS_PASSWORDS_REMOVE}, | 637 {"removePassword", IDS_SETTINGS_PASSWORDS_REMOVE}, |
| 631 {"editPasswordTitle", IDS_SETTINGS_PASSWORDS_EDIT_TITLE}, | 638 {"editPasswordTitle", IDS_SETTINGS_PASSWORDS_EDIT_TITLE}, |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 #endif | 1006 #endif |
| 1000 AddUsersStrings(html_source); | 1007 AddUsersStrings(html_source); |
| 1001 AddWebContentStrings(html_source); | 1008 AddWebContentStrings(html_source); |
| 1002 | 1009 |
| 1003 policy_indicator::AddLocalizedStrings(html_source); | 1010 policy_indicator::AddLocalizedStrings(html_source); |
| 1004 | 1011 |
| 1005 html_source->SetJsonPath(kLocalizedStringsFile); | 1012 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1006 } | 1013 } |
| 1007 | 1014 |
| 1008 } // namespace settings | 1015 } // namespace settings |
| OLD | NEW |