| 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL}, | 568 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL}, |
| 569 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE}, |
| 569 }; | 570 }; |
| 570 AddLocalizedStringsBulk(html_source, localized_strings, | 571 AddLocalizedStringsBulk(html_source, localized_strings, |
| 571 arraysize(localized_strings)); | 572 arraysize(localized_strings)); |
| 572 } | 573 } |
| 573 | 574 |
| 574 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { | 575 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { |
| 575 LocalizedString localized_strings[] = { | 576 LocalizedString localized_strings[] = { |
| 576 {"passwordsAndAutofillPageTitle", | 577 {"passwordsAndAutofillPageTitle", |
| 577 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, | 578 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, |
| 578 {"autofill", IDS_SETTINGS_AUTOFILL}, | 579 {"autofill", IDS_SETTINGS_AUTOFILL}, |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 #endif | 939 #endif |
| 939 AddUsersStrings(html_source); | 940 AddUsersStrings(html_source); |
| 940 AddWebContentStrings(html_source); | 941 AddWebContentStrings(html_source); |
| 941 | 942 |
| 942 policy_indicator::AddLocalizedStrings(html_source); | 943 policy_indicator::AddLocalizedStrings(html_source); |
| 943 | 944 |
| 944 html_source->SetJsonPath(kLocalizedStringsFile); | 945 html_source->SetJsonPath(kLocalizedStringsFile); |
| 945 } | 946 } |
| 946 | 947 |
| 947 } // namespace settings | 948 } // namespace settings |
| OLD | NEW |