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

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

Issue 2495933002: [MD settings][cros accounts] Updates the accounts page according to the specs (Closed)
Patch Set: Addressed comment Created 4 years, 1 month 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/people_page/users_page.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 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 void AddUsersStrings(content::WebUIDataSource* html_source) { 1594 void AddUsersStrings(content::WebUIDataSource* html_source) {
1595 LocalizedString localized_strings[] = { 1595 LocalizedString localized_strings[] = {
1596 {"usersPageTitle", IDS_SETTINGS_USERS}, 1596 {"usersPageTitle", IDS_SETTINGS_USERS},
1597 #if defined(OS_CHROMEOS) 1597 #if defined(OS_CHROMEOS)
1598 {"usersModifiedByOwnerLabel", IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL}, 1598 {"usersModifiedByOwnerLabel", IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL},
1599 {"guestBrowsingLabel", IDS_SETTINGS_USERS_GUEST_BROWSING_LABEL}, 1599 {"guestBrowsingLabel", IDS_SETTINGS_USERS_GUEST_BROWSING_LABEL},
1600 {"settingsManagedLabel", IDS_SETTINGS_USERS_MANAGED_LABEL}, 1600 {"settingsManagedLabel", IDS_SETTINGS_USERS_MANAGED_LABEL},
1601 {"supervisedUsersLabel", IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL}, 1601 {"supervisedUsersLabel", IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL},
1602 {"showOnSigninLabel", IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL}, 1602 {"showOnSigninLabel", IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL},
1603 {"restrictSigninLabel", IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL}, 1603 {"restrictSigninLabel", IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL},
1604 {"deviceOwnerLabel", IDS_SETTINGS_USERS_DEVICE_OWNER_LABEL},
1604 {"addUsers", IDS_SETTINGS_USERS_ADD_USERS}, 1605 {"addUsers", IDS_SETTINGS_USERS_ADD_USERS},
1605 {"addUsersEmail", IDS_SETTINGS_USERS_ADD_USERS_EMAIL}, 1606 {"addUsersEmail", IDS_SETTINGS_USERS_ADD_USERS_EMAIL},
1606 #endif 1607 #endif
1607 }; 1608 };
1608 AddLocalizedStringsBulk(html_source, localized_strings, 1609 AddLocalizedStringsBulk(html_source, localized_strings,
1609 arraysize(localized_strings)); 1610 arraysize(localized_strings));
1610 } 1611 }
1611 1612
1612 #if !defined(OS_CHROMEOS) 1613 #if !defined(OS_CHROMEOS)
1613 void AddSystemStrings(content::WebUIDataSource* html_source) { 1614 void AddSystemStrings(content::WebUIDataSource* html_source) {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 #if defined(USE_NSS_CERTS) 1784 #if defined(USE_NSS_CERTS)
1784 AddCertificateManagerStrings(html_source); 1785 AddCertificateManagerStrings(html_source);
1785 #endif 1786 #endif
1786 1787
1787 policy_indicator::AddLocalizedStrings(html_source); 1788 policy_indicator::AddLocalizedStrings(html_source);
1788 1789
1789 html_source->SetJsonPath(kLocalizedStringsFile); 1790 html_source->SetJsonPath(kLocalizedStringsFile);
1790 } 1791 }
1791 1792
1792 } // namespace settings 1793 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/people_page/users_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698