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

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

Issue 2272213005: Site Settings Desktop: Add links to Adobe settings and Learn more. (Closed)
Patch Set: Address feedback Created 4 years, 3 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/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 {"siteSettingsCookieDialog", IDS_SETTINGS_SITE_SETTINGS_COOKIE_DIALOG}, 1280 {"siteSettingsCookieDialog", IDS_SETTINGS_SITE_SETTINGS_COOKIE_DIALOG},
1281 {"siteSettingsCookieRemove", IDS_SETTINGS_SITE_SETTINGS_COOKIE_REMOVE}, 1281 {"siteSettingsCookieRemove", IDS_SETTINGS_SITE_SETTINGS_COOKIE_REMOVE},
1282 {"siteSettingsCookieRemoveAll", 1282 {"siteSettingsCookieRemoveAll",
1283 IDS_SETTINGS_SITE_SETTINGS_COOKIE_REMOVE_ALL}, 1283 IDS_SETTINGS_SITE_SETTINGS_COOKIE_REMOVE_ALL},
1284 {"thirdPartyCookie", IDS_SETTINGS_SITE_SETTINGS_THIRD_PARTY_COOKIE}, 1284 {"thirdPartyCookie", IDS_SETTINGS_SITE_SETTINGS_THIRD_PARTY_COOKIE},
1285 {"thirdPartyCookieSublabel", 1285 {"thirdPartyCookieSublabel",
1286 IDS_SETTINGS_SITE_SETTINGS_THIRD_PARTY_COOKIE_SUBLABEL}, 1286 IDS_SETTINGS_SITE_SETTINGS_THIRD_PARTY_COOKIE_SUBLABEL},
1287 {"handlerIsDefault", IDS_SETTINGS_SITE_SETTINGS_HANDLER_IS_DEFAULT}, 1287 {"handlerIsDefault", IDS_SETTINGS_SITE_SETTINGS_HANDLER_IS_DEFAULT},
1288 {"handlerSetDefault", IDS_SETTINGS_SITE_SETTINGS_HANDLER_SET_DEFAULT}, 1288 {"handlerSetDefault", IDS_SETTINGS_SITE_SETTINGS_HANDLER_SET_DEFAULT},
1289 {"handlerRemove", IDS_SETTINGS_SITE_SETTINGS_REMOVE}, 1289 {"handlerRemove", IDS_SETTINGS_SITE_SETTINGS_REMOVE},
1290 {"adobeFlashStorage", IDS_SETTINGS_SITE_SETTINGS_ADOBE_FLASH_SETTINGS},
1291 {"learnMore", IDS_SETTINGS_SITE_SETTINGS_LEARN_MORE},
1290 }; 1292 };
1291 AddLocalizedStringsBulk(html_source, localized_strings, 1293 AddLocalizedStringsBulk(html_source, localized_strings,
1292 arraysize(localized_strings)); 1294 arraysize(localized_strings));
1293 } 1295 }
1294 1296
1295 void AddUsersStrings(content::WebUIDataSource* html_source) { 1297 void AddUsersStrings(content::WebUIDataSource* html_source) {
1296 LocalizedString localized_strings[] = { 1298 LocalizedString localized_strings[] = {
1297 {"usersPageTitle", IDS_SETTINGS_USERS}, 1299 {"usersPageTitle", IDS_SETTINGS_USERS},
1298 #if defined(OS_CHROMEOS) 1300 #if defined(OS_CHROMEOS)
1299 {"usersModifiedByOwnerLabel", IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL}, 1301 {"usersModifiedByOwnerLabel", IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL},
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 #endif 1436 #endif
1435 AddUsersStrings(html_source); 1437 AddUsersStrings(html_source);
1436 AddWebContentStrings(html_source); 1438 AddWebContentStrings(html_source);
1437 1439
1438 policy_indicator::AddLocalizedStrings(html_source); 1440 policy_indicator::AddLocalizedStrings(html_source);
1439 1441
1440 html_source->SetJsonPath(kLocalizedStringsFile); 1442 html_source->SetJsonPath(kLocalizedStringsFile);
1441 } 1443 }
1442 1444
1443 } // namespace settings 1445 } // 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