Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2068653003: Settings People Revamp: Add Payments integration to new Sync Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" 14 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "chrome/grit/chromium_strings.h" 16 #include "chrome/grit/chromium_strings.h"
17 #include "chrome/grit/generated_resources.h" 17 #include "chrome/grit/generated_resources.h"
18 #include "chrome/grit/google_chrome_strings.h" 18 #include "chrome/grit/google_chrome_strings.h"
19 #include "chrome/grit/locale_settings.h" 19 #include "chrome/grit/locale_settings.h"
20 #include "chrome/grit/settings_chromium_strings.h" 20 #include "chrome/grit/settings_chromium_strings.h"
21 #include "chrome/grit/settings_google_chrome_strings.h" 21 #include "chrome/grit/settings_google_chrome_strings.h"
22 #include "chrome/grit/settings_strings.h" 22 #include "chrome/grit/settings_strings.h"
23 #include "components/autofill/core/common/autofill_constants.h"
23 #include "components/google/core/browser/google_util.h" 24 #include "components/google/core/browser/google_util.h"
24 #include "components/password_manager/core/browser/password_manager_constants.h" 25 #include "components/password_manager/core/browser/password_manager_constants.h"
25 #include "content/public/browser/web_ui_data_source.h" 26 #include "content/public/browser/web_ui_data_source.h"
26 #include "grit/components_strings.h" 27 #include "grit/components_strings.h"
27 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
28 29
29 #if defined(OS_CHROMEOS) 30 #if defined(OS_CHROMEOS)
30 #include "ash/system/chromeos/devicetype_utils.h" 31 #include "ash/system/chromeos/devicetype_utils.h"
31 #include "chrome/browser/chromeos/profiles/profile_helper.h" 32 #include "chrome/browser/chromeos/profiles/profile_helper.h"
32 #include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h" 33 #include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h"
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 {"appCheckboxLabel", IDS_SETTINGS_APPS_CHECKBOX_LABEL}, 754 {"appCheckboxLabel", IDS_SETTINGS_APPS_CHECKBOX_LABEL},
754 {"extensionsCheckboxLabel", IDS_SETTINGS_EXTENSIONS_CHECKBOX_LABEL}, 755 {"extensionsCheckboxLabel", IDS_SETTINGS_EXTENSIONS_CHECKBOX_LABEL},
755 {"settingsCheckboxLabel", IDS_SETTINGS_SETTINGS_CHECKBOX_LABEL}, 756 {"settingsCheckboxLabel", IDS_SETTINGS_SETTINGS_CHECKBOX_LABEL},
756 {"autofillCheckboxLabel", IDS_SETTINGS_AUTOFILL_CHECKBOX_LABEL}, 757 {"autofillCheckboxLabel", IDS_SETTINGS_AUTOFILL_CHECKBOX_LABEL},
757 {"historyCheckboxLabel", IDS_SETTINGS_HISTORY_CHECKBOX_LABEL}, 758 {"historyCheckboxLabel", IDS_SETTINGS_HISTORY_CHECKBOX_LABEL},
758 {"themesAndWallpapersCheckboxLabel", 759 {"themesAndWallpapersCheckboxLabel",
759 IDS_SETTINGS_THEMES_AND_WALLPAPERS_CHECKBOX_LABEL}, 760 IDS_SETTINGS_THEMES_AND_WALLPAPERS_CHECKBOX_LABEL},
760 {"bookmarksCheckboxLabel", IDS_SETTINGS_BOOKMARKS_CHECKBOX_LABEL}, 761 {"bookmarksCheckboxLabel", IDS_SETTINGS_BOOKMARKS_CHECKBOX_LABEL},
761 {"passwordsCheckboxLabel", IDS_SETTINGS_PASSWORDS_CHECKBOX_LABEL}, 762 {"passwordsCheckboxLabel", IDS_SETTINGS_PASSWORDS_CHECKBOX_LABEL},
762 {"openTabsCheckboxLabel", IDS_SETTINGS_OPEN_TABS_CHECKBOX_LABEL}, 763 {"openTabsCheckboxLabel", IDS_SETTINGS_OPEN_TABS_CHECKBOX_LABEL},
764 {"enablePaymentsIntegrationCheckboxLabel",
765 IDS_SETTINGS_ENABLE_PAYMENTS_INTEGRATION_CHECKBOX_LABEL},
763 {"manageSyncedDataTitle", IDS_SETTINGS_MANAGE_SYNCED_DATA_TITLE}, 766 {"manageSyncedDataTitle", IDS_SETTINGS_MANAGE_SYNCED_DATA_TITLE},
764 {"manageSyncedDataDescription", 767 {"manageSyncedDataDescription",
765 IDS_SETTINGS_MANAGE_SYNCED_DATA_DESCRIPTION}, 768 IDS_SETTINGS_MANAGE_SYNCED_DATA_DESCRIPTION},
766 {"encryptionOptionsTitle", IDS_SETTINGS_ENCRYPTION_OPTIONS}, 769 {"encryptionOptionsTitle", IDS_SETTINGS_ENCRYPTION_OPTIONS},
767 {"syncDataEncryptedText", IDS_SETTINGS_SYNC_DATA_ENCRYPTED_TEXT}, 770 {"syncDataEncryptedText", IDS_SETTINGS_SYNC_DATA_ENCRYPTED_TEXT},
768 {"encryptWithGoogleCredentialsLabel", 771 {"encryptWithGoogleCredentialsLabel",
769 IDS_SETTINGS_ENCRYPT_WITH_GOOGLE_CREDENTIALS_LABEL}, 772 IDS_SETTINGS_ENCRYPT_WITH_GOOGLE_CREDENTIALS_LABEL},
770 {"encryptWithSyncPassphraseLabel", 773 {"encryptWithSyncPassphraseLabel",
771 IDS_SETTINGS_ENCRYPT_WITH_SYNC_PASSPHRASE_LABEL}, 774 IDS_SETTINGS_ENCRYPT_WITH_SYNC_PASSPHRASE_LABEL},
772 {"encryptWithSyncPassphraseLearnMoreLink", 775 {"encryptWithSyncPassphraseLearnMoreLink",
773 IDS_SETTINGS_ENCRYPT_WITH_SYNC_PASSPHRASE_LEARN_MORE_LINK}, 776 IDS_SETTINGS_ENCRYPT_WITH_SYNC_PASSPHRASE_LEARN_MORE_LINK},
774 {"useDefaultSettingsButton", IDS_SETTINGS_USE_DEFAULT_SETTINGS}, 777 {"useDefaultSettingsButton", IDS_SETTINGS_USE_DEFAULT_SETTINGS},
775 {"passphraseExplanationText", IDS_SETTINGS_PASSPHRASE_EXPLANATION_TEXT}, 778 {"passphraseExplanationText", IDS_SETTINGS_PASSPHRASE_EXPLANATION_TEXT},
776 {"emptyPassphraseError", IDS_SETTINGS_EMPTY_PASSPHRASE_ERROR}, 779 {"emptyPassphraseError", IDS_SETTINGS_EMPTY_PASSPHRASE_ERROR},
777 {"mismatchedPassphraseError", IDS_SETTINGS_MISMATCHED_PASSPHRASE_ERROR}, 780 {"mismatchedPassphraseError", IDS_SETTINGS_MISMATCHED_PASSPHRASE_ERROR},
778 {"incorrectPassphraseError", IDS_SETTINGS_INCORRECT_PASSPHRASE_ERROR}, 781 {"incorrectPassphraseError", IDS_SETTINGS_INCORRECT_PASSPHRASE_ERROR},
779 {"passphrasePlaceholder", IDS_SETTINGS_PASSPHRASE_PLACEHOLDER}, 782 {"passphrasePlaceholder", IDS_SETTINGS_PASSPHRASE_PLACEHOLDER},
780 {"passphraseConfirmationPlaceholder", 783 {"passphraseConfirmationPlaceholder",
781 IDS_SETTINGS_PASSPHRASE_CONFIRMATION_PLACEHOLDER}, 784 IDS_SETTINGS_PASSPHRASE_CONFIRMATION_PLACEHOLDER},
782 {"submitPassphraseButton", IDS_SETTINGS_SUBMIT_PASSPHRASE}, 785 {"submitPassphraseButton", IDS_SETTINGS_SUBMIT_PASSPHRASE},
783 {"personalizeGoogleServicesTitle", 786 {"personalizeGoogleServicesTitle",
784 IDS_SETTINGS_PERSONALIZE_GOOGLE_SERVICES_TITLE}, 787 IDS_SETTINGS_PERSONALIZE_GOOGLE_SERVICES_TITLE},
785 {"personalizeGoogleServicesText", 788 {"personalizeGoogleServicesText",
786 IDS_SETTINGS_PERSONALIZE_GOOGLE_SERVICES_TEXT}, 789 IDS_SETTINGS_PERSONALIZE_GOOGLE_SERVICES_TEXT},
787 }; 790 };
788 AddLocalizedStringsBulk(html_source, localized_strings, 791 AddLocalizedStringsBulk(html_source, localized_strings,
789 arraysize(localized_strings)); 792 arraysize(localized_strings));
790 793
794 html_source->AddString("autofillHelpURL", autofill::kHelpURL);
791 html_source->AddString("supervisedUsersUrl", 795 html_source->AddString("supervisedUsersUrl",
792 chrome::kLegacySupervisedUserManagementURL); 796 chrome::kLegacySupervisedUserManagementURL);
793 std::string sync_dashboard_url = 797 std::string sync_dashboard_url =
794 google_util::AppendGoogleLocaleParam( 798 google_util::AppendGoogleLocaleParam(
795 GURL(chrome::kSyncGoogleDashboardURL), 799 GURL(chrome::kSyncGoogleDashboardURL),
796 g_browser_process->GetApplicationLocale()) 800 g_browser_process->GetApplicationLocale())
797 .spec(); 801 .spec();
798 html_source->AddString("syncDashboardUrl", sync_dashboard_url); 802 html_source->AddString("syncDashboardUrl", sync_dashboard_url);
799 html_source->AddString( 803 html_source->AddString(
800 "syncDisconnectExplanation", 804 "syncDisconnectExplanation",
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 #endif 1145 #endif
1142 AddUsersStrings(html_source); 1146 AddUsersStrings(html_source);
1143 AddWebContentStrings(html_source); 1147 AddWebContentStrings(html_source);
1144 1148
1145 policy_indicator::AddLocalizedStrings(html_source); 1149 policy_indicator::AddLocalizedStrings(html_source);
1146 1150
1147 html_source->SetJsonPath(kLocalizedStringsFile); 1151 html_source->SetJsonPath(kLocalizedStringsFile);
1148 } 1152 }
1149 1153
1150 } // namespace settings 1154 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/people_page/sync_page.js ('k') | chrome/browser/ui/webui/settings/people_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698