| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 "enableContentProtectionAttestation", | 206 "enableContentProtectionAttestation", |
| 207 IDS_SETTINGS_ENABLE_CONTENT_PROTECTION_ATTESTATION); | 207 IDS_SETTINGS_ENABLE_CONTENT_PROTECTION_ATTESTATION); |
| 208 html_source->AddLocalizedString("wakeOnWifi", | 208 html_source->AddLocalizedString("wakeOnWifi", |
| 209 IDS_SETTINGS_WAKE_ON_WIFI_DESCRIPTION); | 209 IDS_SETTINGS_WAKE_ON_WIFI_DESCRIPTION); |
| 210 html_source->AddLocalizedString("manageCertificates", | 210 html_source->AddLocalizedString("manageCertificates", |
| 211 IDS_SETTINGS_MANAGE_CERTIFICATES); | 211 IDS_SETTINGS_MANAGE_CERTIFICATES); |
| 212 html_source->AddLocalizedString("siteSettings", | 212 html_source->AddLocalizedString("siteSettings", |
| 213 IDS_SETTINGS_SITE_SETTINGS); | 213 IDS_SETTINGS_SITE_SETTINGS); |
| 214 html_source->AddLocalizedString("clearBrowsingData", | 214 html_source->AddLocalizedString("clearBrowsingData", |
| 215 IDS_SETTINGS_CLEAR_DATA); | 215 IDS_SETTINGS_CLEAR_DATA); |
| 216 html_source->AddLocalizedString("titleAndCount", |
| 217 IDS_SETTINGS_TITLE_AND_COUNT); |
| 216 } | 218 } |
| 217 | 219 |
| 218 void AddSearchStrings(content::WebUIDataSource* html_source) { | 220 void AddSearchStrings(content::WebUIDataSource* html_source) { |
| 219 html_source->AddLocalizedString("searchPageTitle", | 221 html_source->AddLocalizedString("searchPageTitle", |
| 220 IDS_SETTINGS_SEARCH); | 222 IDS_SETTINGS_SEARCH); |
| 221 html_source->AddLocalizedString("searchExplanation", | 223 html_source->AddLocalizedString("searchExplanation", |
| 222 IDS_SETTINGS_SEARCH_EXPLANATION); | 224 IDS_SETTINGS_SEARCH_EXPLANATION); |
| 223 html_source->AddLocalizedString("searchManageButtonLabel", | 225 html_source->AddLocalizedString("searchManageButtonLabel", |
| 224 IDS_SETTINGS_SEARCH_MANAGE_BUTTON_LABEL); | 226 IDS_SETTINGS_SEARCH_MANAGE_BUTTON_LABEL); |
| 225 html_source->AddLocalizedString("searchOkGoogleLabel", | 227 html_source->AddLocalizedString("searchOkGoogleLabel", |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 AddPrivacyStrings(html_source); | 381 AddPrivacyStrings(html_source); |
| 380 AddSearchStrings(html_source); | 382 AddSearchStrings(html_source); |
| 381 AddSearchEnginesStrings(html_source); | 383 AddSearchEnginesStrings(html_source); |
| 382 AddSiteSettingsStrings(html_source); | 384 AddSiteSettingsStrings(html_source); |
| 383 AddSyncStrings(html_source); | 385 AddSyncStrings(html_source); |
| 384 AddUsersStrings(html_source); | 386 AddUsersStrings(html_source); |
| 385 html_source->SetJsonPath(kLocalizedStringsFile); | 387 html_source->SetJsonPath(kLocalizedStringsFile); |
| 386 } | 388 } |
| 387 | 389 |
| 388 } // namespace settings | 390 } // namespace settings |
| OLD | NEW |