| 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 "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 9 #include "chrome/grit/chromium_strings.h" | 9 #include "chrome/grit/chromium_strings.h" |
| 10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 "enableContentProtectionAttestation", | 203 "enableContentProtectionAttestation", |
| 204 IDS_SETTINGS_ENABLE_CONTENT_PROTECTION_ATTESTATION); | 204 IDS_SETTINGS_ENABLE_CONTENT_PROTECTION_ATTESTATION); |
| 205 html_source->AddLocalizedString("wakeOnWifi", | 205 html_source->AddLocalizedString("wakeOnWifi", |
| 206 IDS_SETTINGS_WAKE_ON_WIFI_DESCRIPTION); | 206 IDS_SETTINGS_WAKE_ON_WIFI_DESCRIPTION); |
| 207 html_source->AddLocalizedString("manageCertificates", | 207 html_source->AddLocalizedString("manageCertificates", |
| 208 IDS_SETTINGS_MANAGE_CERTIFICATES); | 208 IDS_SETTINGS_MANAGE_CERTIFICATES); |
| 209 html_source->AddLocalizedString("siteSettings", | 209 html_source->AddLocalizedString("siteSettings", |
| 210 IDS_SETTINGS_SITE_SETTINGS); | 210 IDS_SETTINGS_SITE_SETTINGS); |
| 211 html_source->AddLocalizedString("clearBrowsingData", | 211 html_source->AddLocalizedString("clearBrowsingData", |
| 212 IDS_SETTINGS_CLEAR_DATA); | 212 IDS_SETTINGS_CLEAR_DATA); |
| 213 html_source->AddLocalizedString("titleAndCount", |
| 214 IDS_SETTINGS_TITLE_AND_COUNT); |
| 213 } | 215 } |
| 214 | 216 |
| 215 void AddSearchStrings(content::WebUIDataSource* html_source) { | 217 void AddSearchStrings(content::WebUIDataSource* html_source) { |
| 216 html_source->AddLocalizedString("searchPageTitle", | 218 html_source->AddLocalizedString("searchPageTitle", |
| 217 IDS_SETTINGS_SEARCH); | 219 IDS_SETTINGS_SEARCH); |
| 218 html_source->AddLocalizedString("searchExplanation", | 220 html_source->AddLocalizedString("searchExplanation", |
| 219 IDS_SETTINGS_SEARCH_EXPLANATION); | 221 IDS_SETTINGS_SEARCH_EXPLANATION); |
| 220 html_source->AddLocalizedString("searchManageButtonLabel", | 222 html_source->AddLocalizedString("searchManageButtonLabel", |
| 221 IDS_SETTINGS_SEARCH_MANAGE_BUTTON_LABEL); | 223 IDS_SETTINGS_SEARCH_MANAGE_BUTTON_LABEL); |
| 222 html_source->AddLocalizedString("searchOkGoogleLabel", | 224 html_source->AddLocalizedString("searchOkGoogleLabel", |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 AddPrivacyStrings(html_source); | 378 AddPrivacyStrings(html_source); |
| 377 AddSearchStrings(html_source); | 379 AddSearchStrings(html_source); |
| 378 AddSearchEnginesStrings(html_source); | 380 AddSearchEnginesStrings(html_source); |
| 379 AddSiteSettingsStrings(html_source); | 381 AddSiteSettingsStrings(html_source); |
| 380 AddSyncStrings(html_source); | 382 AddSyncStrings(html_source); |
| 381 AddUsersStrings(html_source); | 383 AddUsersStrings(html_source); |
| 382 html_source->SetJsonPath(kLocalizedStringsFile); | 384 html_source->SetJsonPath(kLocalizedStringsFile); |
| 383 } | 385 } |
| 384 | 386 |
| 385 } // namespace settings | 387 } // namespace settings |
| OLD | NEW |