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

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

Issue 1775803002: MD Settings: add a semi-functional System page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v2-md_history
Patch Set: stevenjb@ review Created 4 years, 9 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/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 {"settingsManagedLabel", IDS_SETTINGS_USERS_MANAGED_LABEL}, 694 {"settingsManagedLabel", IDS_SETTINGS_USERS_MANAGED_LABEL},
695 {"supervisedUsersLabel", IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL}, 695 {"supervisedUsersLabel", IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL},
696 {"showOnSigninLabel", IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL}, 696 {"showOnSigninLabel", IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL},
697 {"restrictSigninLabel", IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL}, 697 {"restrictSigninLabel", IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL},
698 {"addUsersLabel", IDS_SETTINGS_USERS_ADD_USERS_LABEL}, 698 {"addUsersLabel", IDS_SETTINGS_USERS_ADD_USERS_LABEL},
699 }; 699 };
700 AddLocalizedStringsBulk(html_source, localized_strings, 700 AddLocalizedStringsBulk(html_source, localized_strings,
701 arraysize(localized_strings)); 701 arraysize(localized_strings));
702 } 702 }
703 703
704 #if !defined(OS_CHROMEOS)
705 void AddSystemStrings(content::WebUIDataSource* html_source) {
706 LocalizedString localized_strings[] = {
707 {"systemPageTitle", IDS_SETTINGS_SYSTEM},
708 #if !defined(OS_MACOSX)
709 {"backgroundAppsLabel", IDS_SETTINGS_SYSTEM_BACKGROUND_APPS_LABEL},
710 #endif
711 {"hardwareAccelerationLabel",
712 IDS_SETTINGS_SYSTEM_HARDWARE_ACCELERATION_LABEL},
713 {"changeProxySettings", IDS_SETTINGS_SYSTEM_PROXY_SETTINGS_BUTTON},
714 };
715 AddLocalizedStringsBulk(html_source, localized_strings,
716 arraysize(localized_strings));
717 }
718 #endif
719
704 void AddWebContentStrings(content::WebUIDataSource* html_source) { 720 void AddWebContentStrings(content::WebUIDataSource* html_source) {
705 LocalizedString localized_strings[] = { 721 LocalizedString localized_strings[] = {
706 {"webContent", IDS_SETTINGS_WEB_CONTENT}, 722 {"webContent", IDS_SETTINGS_WEB_CONTENT},
707 {"pageZoom", IDS_SETTINGS_PAGE_ZOOM_LABEL}, 723 {"pageZoom", IDS_SETTINGS_PAGE_ZOOM_LABEL},
708 {"fontSize", IDS_SETTINGS_FONT_SIZE_LABEL}, 724 {"fontSize", IDS_SETTINGS_FONT_SIZE_LABEL},
709 {"verySmall", IDS_SETTINGS_VERY_SMALL_FONT}, 725 {"verySmall", IDS_SETTINGS_VERY_SMALL_FONT},
710 {"small", IDS_SETTINGS_SMALL_FONT}, 726 {"small", IDS_SETTINGS_SMALL_FONT},
711 {"medium", IDS_SETTINGS_MEDIUM_FONT}, 727 {"medium", IDS_SETTINGS_MEDIUM_FONT},
712 {"large", IDS_SETTINGS_LARGE_FONT}, 728 {"large", IDS_SETTINGS_LARGE_FONT},
713 {"veryLarge", IDS_SETTINGS_VERY_LARGE_FONT}, 729 {"veryLarge", IDS_SETTINGS_VERY_LARGE_FONT},
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 AddMultiProfilesStrings(html_source, profile); 785 AddMultiProfilesStrings(html_source, profile);
770 #endif 786 #endif
771 AddOnStartupStrings(html_source); 787 AddOnStartupStrings(html_source);
772 AddPasswordsAndFormsStrings(html_source); 788 AddPasswordsAndFormsStrings(html_source);
773 AddPeopleStrings(html_source); 789 AddPeopleStrings(html_source);
774 AddPrivacyStrings(html_source); 790 AddPrivacyStrings(html_source);
775 AddResetStrings(html_source); 791 AddResetStrings(html_source);
776 AddSearchEnginesStrings(html_source); 792 AddSearchEnginesStrings(html_source);
777 AddSearchStrings(html_source); 793 AddSearchStrings(html_source);
778 AddSiteSettingsStrings(html_source); 794 AddSiteSettingsStrings(html_source);
795 #if !defined(OS_CHROMEOS)
796 AddSystemStrings(html_source);
797 #endif
779 AddUsersStrings(html_source); 798 AddUsersStrings(html_source);
780 AddWebContentStrings(html_source); 799 AddWebContentStrings(html_source);
781 800
782 policy_indicator::AddLocalizedStrings(html_source); 801 policy_indicator::AddLocalizedStrings(html_source);
783 802
784 html_source->SetJsonPath(kLocalizedStringsFile); 803 html_source->SetJsonPath(kLocalizedStringsFile);
785 } 804 }
786 805
787 } // namespace settings 806 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698