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

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

Issue 2031833003: MD Site Settings: Implement the third-party checkbox for Cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback 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
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_settings_category.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 {"siteSettingsExceptions", IDS_SETTINGS_SITE_SETTINGS_EXCEPTIONS}, 932 {"siteSettingsExceptions", IDS_SETTINGS_SITE_SETTINGS_EXCEPTIONS},
933 {"siteSettingsAddSite", IDS_SETTINGS_SITE_SETTINGS_ADD_SITE}, 933 {"siteSettingsAddSite", IDS_SETTINGS_SITE_SETTINGS_ADD_SITE},
934 {"siteSettingsSiteUrl", IDS_SETTINGS_SITE_SETTINGS_SITE_URL}, 934 {"siteSettingsSiteUrl", IDS_SETTINGS_SITE_SETTINGS_SITE_URL},
935 {"siteSettingsActionAllow", IDS_SETTINGS_SITE_SETTINGS_ALLOW_MENU}, 935 {"siteSettingsActionAllow", IDS_SETTINGS_SITE_SETTINGS_ALLOW_MENU},
936 {"siteSettingsActionBlock", IDS_SETTINGS_SITE_SETTINGS_BLOCK_MENU}, 936 {"siteSettingsActionBlock", IDS_SETTINGS_SITE_SETTINGS_BLOCK_MENU},
937 {"siteSettingsActionReset", IDS_SETTINGS_SITE_SETTINGS_RESET_MENU}, 937 {"siteSettingsActionReset", IDS_SETTINGS_SITE_SETTINGS_RESET_MENU},
938 {"siteSettingsUsage", IDS_SETTINGS_SITE_SETTINGS_USAGE}, 938 {"siteSettingsUsage", IDS_SETTINGS_SITE_SETTINGS_USAGE},
939 {"siteSettingsPermissions", IDS_SETTINGS_SITE_SETTINGS_PERMISSIONS}, 939 {"siteSettingsPermissions", IDS_SETTINGS_SITE_SETTINGS_PERMISSIONS},
940 {"siteSettingsClearAndReset", IDS_SETTINGS_SITE_SETTINGS_CLEAR_BUTTON}, 940 {"siteSettingsClearAndReset", IDS_SETTINGS_SITE_SETTINGS_CLEAR_BUTTON},
941 {"siteSettingsDelete", IDS_SETTINGS_SITE_SETTINGS_DELETE}, 941 {"siteSettingsDelete", IDS_SETTINGS_SITE_SETTINGS_DELETE},
942 {"thirdPartyCookie", IDS_SETTINGS_SITE_SETTINGS_THIRD_PARTY_COOKIE},
943 {"thirdPartyCookieSublabel",
944 IDS_SETTINGS_SITE_SETTINGS_THIRD_PARTY_COOKIE_SUBLABEL},
942 }; 945 };
943 AddLocalizedStringsBulk(html_source, localized_strings, 946 AddLocalizedStringsBulk(html_source, localized_strings,
944 arraysize(localized_strings)); 947 arraysize(localized_strings));
945 } 948 }
946 949
947 void AddUsersStrings(content::WebUIDataSource* html_source) { 950 void AddUsersStrings(content::WebUIDataSource* html_source) {
948 LocalizedString localized_strings[] = { 951 LocalizedString localized_strings[] = {
949 {"usersPageTitle", IDS_SETTINGS_USERS}, 952 {"usersPageTitle", IDS_SETTINGS_USERS},
950 #if defined(OS_CHROMEOS) 953 #if defined(OS_CHROMEOS)
951 {"usersModifiedByOwnerLabel", IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL}, 954 {"usersModifiedByOwnerLabel", IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL},
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 #endif 1067 #endif
1065 AddUsersStrings(html_source); 1068 AddUsersStrings(html_source);
1066 AddWebContentStrings(html_source); 1069 AddWebContentStrings(html_source);
1067 1070
1068 policy_indicator::AddLocalizedStrings(html_source); 1071 policy_indicator::AddLocalizedStrings(html_source);
1069 1072
1070 html_source->SetJsonPath(kLocalizedStringsFile); 1073 html_source->SetJsonPath(kLocalizedStringsFile);
1071 } 1074 }
1072 1075
1073 } // namespace settings 1076 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_settings_category.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698