| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 #endif | 558 #endif |
| 559 | 559 |
| 560 void AddOnStartupStrings(content::WebUIDataSource* html_source) { | 560 void AddOnStartupStrings(content::WebUIDataSource* html_source) { |
| 561 LocalizedString localized_strings[] = { | 561 LocalizedString localized_strings[] = { |
| 562 {"onStartup", IDS_SETTINGS_ON_STARTUP}, | 562 {"onStartup", IDS_SETTINGS_ON_STARTUP}, |
| 563 {"onStartupOpenNewTab", IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB}, | 563 {"onStartupOpenNewTab", IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB}, |
| 564 {"onStartupContinue", IDS_SETTINGS_ON_STARTUP_CONTINUE}, | 564 {"onStartupContinue", IDS_SETTINGS_ON_STARTUP_CONTINUE}, |
| 565 {"onStartupOpenSpecific", IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC}, | 565 {"onStartupOpenSpecific", IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC}, |
| 566 {"onStartupUseCurrent", IDS_SETTINGS_ON_STARTUP_USE_CURRENT}, | 566 {"onStartupUseCurrent", IDS_SETTINGS_ON_STARTUP_USE_CURRENT}, |
| 567 {"onStartupAddNewPage", IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE}, | 567 {"onStartupAddNewPage", IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE}, |
| 568 {"onStartupEditPage", IDS_SETTINGS_ON_STARTUP_EDIT_PAGE}, |
| 568 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL}, | 569 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL}, |
| 569 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE}, | 570 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE}, |
| 571 {"onStartupEdit", IDS_SETTINGS_ON_STARTUP_EDIT}, |
| 570 }; | 572 }; |
| 571 AddLocalizedStringsBulk(html_source, localized_strings, | 573 AddLocalizedStringsBulk(html_source, localized_strings, |
| 572 arraysize(localized_strings)); | 574 arraysize(localized_strings)); |
| 573 } | 575 } |
| 574 | 576 |
| 575 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { | 577 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { |
| 576 LocalizedString localized_strings[] = { | 578 LocalizedString localized_strings[] = { |
| 577 {"passwordsAndAutofillPageTitle", | 579 {"passwordsAndAutofillPageTitle", |
| 578 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, | 580 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, |
| 579 {"autofill", IDS_SETTINGS_AUTOFILL}, | 581 {"autofill", IDS_SETTINGS_AUTOFILL}, |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 #endif | 941 #endif |
| 940 AddUsersStrings(html_source); | 942 AddUsersStrings(html_source); |
| 941 AddWebContentStrings(html_source); | 943 AddWebContentStrings(html_source); |
| 942 | 944 |
| 943 policy_indicator::AddLocalizedStrings(html_source); | 945 policy_indicator::AddLocalizedStrings(html_source); |
| 944 | 946 |
| 945 html_source->SetJsonPath(kLocalizedStringsFile); | 947 html_source->SetJsonPath(kLocalizedStringsFile); |
| 946 } | 948 } |
| 947 | 949 |
| 948 } // namespace settings | 950 } // namespace settings |
| OLD | NEW |