| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 html_source->AddLocalizedString("searchEnginesDomainLabel", | 367 html_source->AddLocalizedString("searchEnginesDomainLabel", |
| 368 IDS_SETTINGS_SEARCH_ENGINES_DOMAIN_LABEL); | 368 IDS_SETTINGS_SEARCH_ENGINES_DOMAIN_LABEL); |
| 369 html_source->AddLocalizedString("searchEnginesKeywordLabel", | 369 html_source->AddLocalizedString("searchEnginesKeywordLabel", |
| 370 IDS_SETTINGS_SEARCH_ENGINES_KEYWORD_LABEL); | 370 IDS_SETTINGS_SEARCH_ENGINES_KEYWORD_LABEL); |
| 371 html_source->AddLocalizedString("searchEnginesQueryURLLabel", | 371 html_source->AddLocalizedString("searchEnginesQueryURLLabel", |
| 372 IDS_SETTINGS_SEARCH_ENGINES_QUERY_URL_LABEL); | 372 IDS_SETTINGS_SEARCH_ENGINES_QUERY_URL_LABEL); |
| 373 html_source->AddLocalizedString("searchEnginesAddButtonLabel", | 373 html_source->AddLocalizedString("searchEnginesAddButtonLabel", |
| 374 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL); | 374 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL); |
| 375 } | 375 } |
| 376 | 376 |
| 377 #if !defined(OS_CHROMEOS) |
| 378 void AddSigninSettingsStrings(content::WebUIDataSource* html_source) { |
| 379 html_source->AddLocalizedString("signinPageTitle", IDS_SETTINGS_SIGNIN); |
| 380 } |
| 381 #endif |
| 382 |
| 377 void AddSiteSettingsStrings(content::WebUIDataSource* html_source) { | 383 void AddSiteSettingsStrings(content::WebUIDataSource* html_source) { |
| 378 html_source->AddLocalizedString("siteSettingsPageTitle", | 384 html_source->AddLocalizedString("siteSettingsPageTitle", |
| 379 IDS_SETTINGS_SITE_SETTINGS); | 385 IDS_SETTINGS_SITE_SETTINGS); |
| 380 html_source->AddLocalizedString("siteSettingsAllSites", | 386 html_source->AddLocalizedString("siteSettingsAllSites", |
| 381 IDS_SETTINGS_SITE_SETTINGS_ALL_SITES); | 387 IDS_SETTINGS_SITE_SETTINGS_ALL_SITES); |
| 382 html_source->AddLocalizedString("siteSettingsCookies", | 388 html_source->AddLocalizedString("siteSettingsCookies", |
| 383 IDS_SETTINGS_SITE_SETTINGS_COOKIES); | 389 IDS_SETTINGS_SITE_SETTINGS_COOKIES); |
| 384 html_source->AddLocalizedString("siteSettingsLocation", | 390 html_source->AddLocalizedString("siteSettingsLocation", |
| 385 IDS_SETTINGS_SITE_SETTINGS_LOCATION); | 391 IDS_SETTINGS_SITE_SETTINGS_LOCATION); |
| 386 html_source->AddLocalizedString("siteSettingsNotifications", | 392 html_source->AddLocalizedString("siteSettingsNotifications", |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 AddDownloadsStrings(html_source); | 500 AddDownloadsStrings(html_source); |
| 495 AddDateTimeStrings(html_source); | 501 AddDateTimeStrings(html_source); |
| 496 #if defined(OS_CHROMEOS) | 502 #if defined(OS_CHROMEOS) |
| 497 AddInternetStrings(html_source); | 503 AddInternetStrings(html_source); |
| 498 #endif | 504 #endif |
| 499 AddLanguagesStrings(html_source); | 505 AddLanguagesStrings(html_source); |
| 500 AddOnStartupStrings(html_source); | 506 AddOnStartupStrings(html_source); |
| 501 AddPrivacyStrings(html_source); | 507 AddPrivacyStrings(html_source); |
| 502 AddSearchStrings(html_source); | 508 AddSearchStrings(html_source); |
| 503 AddSearchEnginesStrings(html_source); | 509 AddSearchEnginesStrings(html_source); |
| 510 #if !defined(OS_CHROMEOS) |
| 511 AddSigninSettingsStrings(html_source); |
| 512 #endif |
| 504 AddSiteSettingsStrings(html_source); | 513 AddSiteSettingsStrings(html_source); |
| 505 AddSyncStrings(html_source); | 514 AddSyncStrings(html_source); |
| 506 AddUsersStrings(html_source); | 515 AddUsersStrings(html_source); |
| 507 html_source->SetJsonPath(kLocalizedStringsFile); | 516 html_source->SetJsonPath(kLocalizedStringsFile); |
| 508 } | 517 } |
| 509 | 518 |
| 510 } // namespace settings | 519 } // namespace settings |
| OLD | NEW |