| 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/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" | 10 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 IDS_SETTINGS_SITE_SETTINGS_ADD_SITE); | 526 IDS_SETTINGS_SITE_SETTINGS_ADD_SITE); |
| 527 html_source->AddLocalizedString("siteSettingsSiteUrl", | 527 html_source->AddLocalizedString("siteSettingsSiteUrl", |
| 528 IDS_SETTINGS_SITE_SETTINGS_SITE_URL); | 528 IDS_SETTINGS_SITE_SETTINGS_SITE_URL); |
| 529 | 529 |
| 530 html_source->AddLocalizedString("siteSettingsActionAllow", | 530 html_source->AddLocalizedString("siteSettingsActionAllow", |
| 531 IDS_SETTINGS_SITE_SETTINGS_ALLOW_MENU); | 531 IDS_SETTINGS_SITE_SETTINGS_ALLOW_MENU); |
| 532 html_source->AddLocalizedString("siteSettingsActionBlock", | 532 html_source->AddLocalizedString("siteSettingsActionBlock", |
| 533 IDS_SETTINGS_SITE_SETTINGS_BLOCK_MENU); | 533 IDS_SETTINGS_SITE_SETTINGS_BLOCK_MENU); |
| 534 html_source->AddLocalizedString("siteSettingsActionReset", | 534 html_source->AddLocalizedString("siteSettingsActionReset", |
| 535 IDS_SETTINGS_SITE_SETTINGS_RESET_MENU); | 535 IDS_SETTINGS_SITE_SETTINGS_RESET_MENU); |
| 536 html_source->AddLocalizedString("siteSettingsUsage", |
| 537 IDS_SETTINGS_SITE_SETTINGS_USAGE); |
| 538 html_source->AddLocalizedString("siteSettingsPermissions", |
| 539 IDS_SETTINGS_SITE_SETTINGS_PERMISSIONS); |
| 540 html_source->AddLocalizedString("siteSettingsClearAndReset", |
| 541 IDS_SETTINGS_SITE_SETTINGS_CLEAR_BUTTON); |
| 542 html_source->AddLocalizedString("siteSettingsDelete", |
| 543 IDS_SETTINGS_SITE_SETTINGS_DELETE); |
| 536 } | 544 } |
| 537 | 545 |
| 538 void AddSyncStrings(content::WebUIDataSource* html_source) { | 546 void AddSyncStrings(content::WebUIDataSource* html_source) { |
| 539 html_source->AddLocalizedString("syncDisconnect", | 547 html_source->AddLocalizedString("syncDisconnect", |
| 540 IDS_SETTINGS_SYNC_DISCONNECT); | 548 IDS_SETTINGS_SYNC_DISCONNECT); |
| 541 html_source->AddLocalizedString("syncDisconnectTitle", | 549 html_source->AddLocalizedString("syncDisconnectTitle", |
| 542 IDS_SETTINGS_SYNC_DISCONNECT_TITLE); | 550 IDS_SETTINGS_SYNC_DISCONNECT_TITLE); |
| 543 std::string disconnect_help_url = | 551 std::string disconnect_help_url = |
| 544 google_util::AppendGoogleLocaleParam( | 552 google_util::AppendGoogleLocaleParam( |
| 545 GURL(chrome::kSyncGoogleDashboardURL), | 553 GURL(chrome::kSyncGoogleDashboardURL), |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 AddSyncStrings(html_source); | 714 AddSyncStrings(html_source); |
| 707 AddUsersStrings(html_source); | 715 AddUsersStrings(html_source); |
| 708 AddWebContentStrings(html_source); | 716 AddWebContentStrings(html_source); |
| 709 | 717 |
| 710 policy_indicator::AddLocalizedStrings(html_source); | 718 policy_indicator::AddLocalizedStrings(html_source); |
| 711 | 719 |
| 712 html_source->SetJsonPath(kLocalizedStringsFile); | 720 html_source->SetJsonPath(kLocalizedStringsFile); |
| 713 } | 721 } |
| 714 | 722 |
| 715 } // namespace settings | 723 } // namespace settings |
| OLD | NEW |