Commit 97afa2b0 authored by Anastasiia Nikolaienko's avatar Anastasiia Nikolaienko Committed by Commit Bot

Add account manager description text for child users

Bug: 1043108
Change-Id: Ie64acba83e6965a0fd7efe88fbb8c15a95550047
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2091345
Commit-Queue: Anastasiia Nikolaienko <anastasiian@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Reviewed-by: default avatarKush Sinha <sinhak@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749589}
parent 3c098f45
...@@ -374,7 +374,7 @@ ...@@ -374,7 +374,7 @@
<message name="IDS_SETTINGS_A11Y_TABLET_MODE_SHELF_BUTTONS_DESCRIPTION" desc="The description for the setting within accessibility settings that controls whether Chrome OS system shelf navigation buttons should be shown when the device is in tablet mode. The buttons whose visibility the setting controls are the button to go home (to launcher), the button to go back, and the button to go to overview."> <message name="IDS_SETTINGS_A11Y_TABLET_MODE_SHELF_BUTTONS_DESCRIPTION" desc="The description for the setting within accessibility settings that controls whether Chrome OS system shelf navigation buttons should be shown when the device is in tablet mode. The buttons whose visibility the setting controls are the button to go home (to launcher), the button to go back, and the button to go to overview.">
Show Launcher, Back, Overview buttons in Shelf in tablet mode. Turned on when ChromeVox (spoken feedback) or Switch Access is enabled. Show Launcher, Back, Overview buttons in Shelf in tablet mode. Turned on when ChromeVox (spoken feedback) or Switch Access is enabled.
</message> </message>
<!-- A11y (OS Settings) --> <!-- A11y (OS Settings) -->
<message name="IDS_SETTINGS_OPTIONS_IN_MENU_LABEL" desc="Label for checkbox which enables showing accessibility options in the system menu."> <message name="IDS_SETTINGS_OPTIONS_IN_MENU_LABEL" desc="Label for checkbox which enables showing accessibility options in the system menu.">
Always show accessibility options in the system menu Always show accessibility options in the system menu
...@@ -697,7 +697,10 @@ ...@@ -697,7 +697,10 @@
<!-- Account Manager (OS settings) --> <!-- Account Manager (OS settings) -->
<message name="IDS_SETTINGS_ACCOUNT_MANAGER_DESCRIPTION" desc="Description of the Account Manager Settings page. Shown just below the title of the page."> <message name="IDS_SETTINGS_ACCOUNT_MANAGER_DESCRIPTION" desc="Description of the Account Manager Settings page. Shown just below the title of the page.">
Manage your signed-in accounts. Websites, apps, and extensions in Chrome and Google Play may use these accounts to customize your experience, depending on permissions. &lt;a&gt;Learn more&lt;/a&gt; Manage your signed-in accounts. Websites, apps, and extensions in Chrome and Google Play may use these accounts to customize your experience, depending on permissions. <ph name="LINK_BEGIN">&lt;a&gt;</ph>Learn more<ph name="LINK_END">&lt;/a&gt;</ph>
</message>
<message name="IDS_SETTINGS_ACCOUNT_MANAGER_CHILD_DESCRIPTION" desc="Description of the Account Manager Settings page for child users. Shown just below the title of the page.">
Add a school account or manage child accounts here. <ph name="LINK_BEGIN">&lt;a&gt;</ph>Learn more<ph name="LINK_END">&lt;/a&gt;</ph>
</message> </message>
<message name="IDS_SETTINGS_ACCOUNT_MANAGER_LIST_HEADER" desc="List header for Account List in Account Manager Settings page."> <message name="IDS_SETTINGS_ACCOUNT_MANAGER_LIST_HEADER" desc="List header for Account List in Account Manager Settings page.">
Accounts Accounts
...@@ -945,8 +948,8 @@ ...@@ -945,8 +948,8 @@
</message> </message>
<message name="IDS_SETTINGS_CROSTINI_MIC_TITLE" desc="Title for sharing mic with Crostini."> <message name="IDS_SETTINGS_CROSTINI_MIC_TITLE" desc="Title for sharing mic with Crostini.">
Give access to microphone Give access to microphone
</message> </message>
<!-- Android apps page (OS settings) --> <!-- Android apps page (OS settings) -->
<message name="IDS_SETTINGS_ANDROID_APPS_LABEL" desc="The text associated with the primary section setting."> <message name="IDS_SETTINGS_ANDROID_APPS_LABEL" desc="The text associated with the primary section setting.">
Google Play Store Google Play Store
...@@ -969,7 +972,7 @@ ...@@ -969,7 +972,7 @@
<message name="IDS_SETTINGS_ANDROID_APPS_MANAGE_APP_LINKS" desc="Label for accessing app preferrences on ARC side."> <message name="IDS_SETTINGS_ANDROID_APPS_MANAGE_APP_LINKS" desc="Label for accessing app preferrences on ARC side.">
Manage Play app links Manage Play app links
</message> </message>
<!-- Device Stylus (OS settings) --> <!-- Device Stylus (OS settings) -->
<message name="IDS_SETTINGS_STYLUS_TITLE" desc="Title of the stylus settings page."> <message name="IDS_SETTINGS_STYLUS_TITLE" desc="Title of the stylus settings page.">
Stylus Stylus
...@@ -1004,7 +1007,7 @@ ...@@ -1004,7 +1007,7 @@
<message name="IDS_SETTINGS_STYLUS_NOTE_TAKING_APP_WAITING_FOR_ANDROID" desc="Secondary label used when the list of note-taking apps is not yet available, because the internal android container has not yet finished starting."> <message name="IDS_SETTINGS_STYLUS_NOTE_TAKING_APP_WAITING_FOR_ANDROID" desc="Secondary label used when the list of note-taking apps is not yet available, because the internal android container has not yet finished starting.">
Loading apps... Loading apps...
</message> </message>
<!-- Bluetooth page (OS settings) --> <!-- Bluetooth page (OS settings) -->
<message name="IDS_SETTINGS_BLUETOOTH_CONNECTED" desc="In Bluetooth device list, this label is shown below a device which is already connected."> <message name="IDS_SETTINGS_BLUETOOTH_CONNECTED" desc="In Bluetooth device list, this label is shown below a device which is already connected.">
Connected Connected
...@@ -1696,7 +1699,7 @@ ...@@ -1696,7 +1699,7 @@
<message name="IDS_SETTINGS_USER_EXISTS_ERROR" desc="Error message for attempting to add a user that already exists"> <message name="IDS_SETTINGS_USER_EXISTS_ERROR" desc="Error message for attempting to add a user that already exists">
This user already exists This user already exists
</message> </message>
<!-- Multidevice Page (OS settings) --> <!-- Multidevice Page (OS settings) -->
<message name="IDS_SETTINGS_MULTIDEVICE" desc="Title of a section of settings. This section describes settings for devices that are connected to the Chromebook, like phones."> <message name="IDS_SETTINGS_MULTIDEVICE" desc="Title of a section of settings. This section describes settings for devices that are connected to the Chromebook, like phones.">
Connected devices Connected devices
...@@ -2225,7 +2228,7 @@ ...@@ -2225,7 +2228,7 @@
<message name="IDS_SETTINGS_DISPLAY_TOUCH_CALIBRATION_TEXT" desc="In Device Settings > Displays, the sublabel for initiating touch calibration."> <message name="IDS_SETTINGS_DISPLAY_TOUCH_CALIBRATION_TEXT" desc="In Device Settings > Displays, the sublabel for initiating touch calibration.">
Set up and adjust the accuracy of your touchscreen Set up and adjust the accuracy of your touchscreen
</message> </message>
<!-- Smart Lock Page (OS settings) --> <!-- Smart Lock Page (OS settings) -->
<message name="IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE" desc="The title of the Easy Unlock section on the settings page."> <message name="IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE" desc="The title of the Easy Unlock section on the settings page.">
Smart Lock Smart Lock
...@@ -2236,7 +2239,7 @@ ...@@ -2236,7 +2239,7 @@
<message name="IDS_SETTINGS_EASY_UNLOCK_UNLOCK_DEVICE_AND_ALLOW_SIGNIN" desc="This option lets the user unlock their Chromebook from their phone as well as log into their Chromebook without a password if their phone is nearby and unlocked."> <message name="IDS_SETTINGS_EASY_UNLOCK_UNLOCK_DEVICE_AND_ALLOW_SIGNIN" desc="This option lets the user unlock their Chromebook from their phone as well as log into their Chromebook without a password if their phone is nearby and unlocked.">
Unlock device and sign in to Google Account Unlock device and sign in to Google Account
</message> </message>
<!-- Fingerprint Page (OS settings) --> <!-- Fingerprint Page (OS settings) -->
<message name="IDS_SETTINGS_PEOPLE_LOCK_SCREEN_ADD_FINGERPRINT_BUTTON" desc="Button that is used to add a new fingerprint."> <message name="IDS_SETTINGS_PEOPLE_LOCK_SCREEN_ADD_FINGERPRINT_BUTTON" desc="Button that is used to add a new fingerprint.">
Add Fingerprint Add Fingerprint
...@@ -2322,7 +2325,7 @@ ...@@ -2322,7 +2325,7 @@
<message name="IDS_SETTINGS_SET_DATE_TIME" desc="Label for the button that shows the dialog for setting the system date and time."> <message name="IDS_SETTINGS_SET_DATE_TIME" desc="Label for the button that shows the dialog for setting the system date and time.">
Set date and time Set date and time
</message> </message>
<!-- Device Keyboard page (OS settings) --> <!-- Device Keyboard page (OS settings) -->
<message name="IDS_SETTINGS_KEYBOARD_TITLE" desc="In Device Settings, the title of the keyboard settings subpage."> <message name="IDS_SETTINGS_KEYBOARD_TITLE" desc="In Device Settings, the title of the keyboard settings subpage.">
Keyboard Keyboard
...@@ -2405,7 +2408,7 @@ ...@@ -2405,7 +2408,7 @@
<message name="IDS_SETTINGS_KEYBOARD_SEND_FUNCTION_KEYS_DESCRIPTION" desc="In Device Settings, the label describing how to use the top-row keys' original actions when they are set to behave like function keys."> <message name="IDS_SETTINGS_KEYBOARD_SEND_FUNCTION_KEYS_DESCRIPTION" desc="In Device Settings, the label describing how to use the top-row keys' original actions when they are set to behave like function keys.">
Hold the Search key to switch the behavior of the top-row keys Hold the Search key to switch the behavior of the top-row keys
</message> </message>
<!-- Apps Section Page --> <!-- Apps Section Page -->
<message name="IDS_SETTINGS_APPS_TITLE" desc="The title of Apps section."> <message name="IDS_SETTINGS_APPS_TITLE" desc="The title of Apps section.">
Apps Apps
......
05ce55b3b1f72551dc7524643577ce67be247b25
\ No newline at end of file
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<div class="settings-box first"> <div class="settings-box first">
<settings-localized-link <settings-localized-link
class="account-manager-description" class="account-manager-description"
localized-string="$i18n{accountManagerDescription}" localized-string="[[getAccountManagerDescription_()]]"
link-url="$i18nRaw{accountManagerLearnMoreUrl}"> link-url="$i18nRaw{accountManagerLearnMoreUrl}">
</settings-localized-link> </settings-localized-link>
</div> </div>
......
...@@ -77,13 +77,25 @@ Polymer({ ...@@ -77,13 +77,25 @@ Polymer({
return loadTimeData.getBoolean('secondaryGoogleAccountSigninAllowed'); return loadTimeData.getBoolean('secondaryGoogleAccountSigninAllowed');
}, },
/**
* @return {string} account manager description text.
* @private
*/
getAccountManagerDescription_() {
if (this.isChildUser_ &&
loadTimeData.getBoolean('isEduCoexistenceEnabled')) {
return loadTimeData.getString('accountManagerChildDescription');
}
return loadTimeData.getString('accountManagerDescription');
},
/** /**
* @return {string} 'Secondary Accounts disabled' message depending on * @return {string} 'Secondary Accounts disabled' message depending on
* account type * account type
* @private * @private
*/ */
getSecondaryAccountsDisabledUserMessage_() { getSecondaryAccountsDisabledUserMessage_() {
return loadTimeData.getBoolean('isChild') return this.isChildUser_
? this.i18n('accountManagerSecondaryAccountsDisabledChildText') ? this.i18n('accountManagerSecondaryAccountsDisabledChildText')
: this.i18n('accountManagerSecondaryAccountsDisabledText'); : this.i18n('accountManagerSecondaryAccountsDisabledText');
}, },
......
...@@ -583,6 +583,8 @@ void AddFingerprintStrings(content::WebUIDataSource* html_source) { ...@@ -583,6 +583,8 @@ void AddFingerprintStrings(content::WebUIDataSource* html_source) {
void AddAccountManagerPageStrings(content::WebUIDataSource* html_source) { void AddAccountManagerPageStrings(content::WebUIDataSource* html_source) {
static constexpr webui::LocalizedString kLocalizedStrings[] = { static constexpr webui::LocalizedString kLocalizedStrings[] = {
{"accountManagerDescription", IDS_SETTINGS_ACCOUNT_MANAGER_DESCRIPTION}, {"accountManagerDescription", IDS_SETTINGS_ACCOUNT_MANAGER_DESCRIPTION},
{"accountManagerChildDescription",
IDS_SETTINGS_ACCOUNT_MANAGER_CHILD_DESCRIPTION},
{"accountListHeader", IDS_SETTINGS_ACCOUNT_MANAGER_LIST_HEADER}, {"accountListHeader", IDS_SETTINGS_ACCOUNT_MANAGER_LIST_HEADER},
{"accountManagerPrimaryAccountTooltip", {"accountManagerPrimaryAccountTooltip",
IDS_SETTINGS_ACCOUNT_MANAGER_PRIMARY_ACCOUNT_TOOLTIP}, IDS_SETTINGS_ACCOUNT_MANAGER_PRIMARY_ACCOUNT_TOOLTIP},
......
...@@ -268,6 +268,8 @@ void OSSettingsUI::InitOSWebUIHandlers(content::WebUIDataSource* html_source) { ...@@ -268,6 +268,8 @@ void OSSettingsUI::InitOSWebUIHandlers(content::WebUIDataSource* html_source) {
"secondaryGoogleAccountSigninAllowed", "secondaryGoogleAccountSigninAllowed",
profile->GetPrefs()->GetBoolean( profile->GetPrefs()->GetBoolean(
chromeos::prefs::kSecondaryGoogleAccountSigninAllowed)); chromeos::prefs::kSecondaryGoogleAccountSigninAllowed));
html_source->AddBoolean("isEduCoexistenceEnabled",
features::IsEduCoexistenceEnabled());
} }
web_ui()->AddMessageHandler( web_ui()->AddMessageHandler(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment