Commit 33266f5e authored by Aya ElAttar's avatar Aya ElAttar Committed by Commit Bot

Added organization name to the relaunch notification recommended string on Chrome OS

Bug: 1044716
Change-Id: I11653c3c6af414b5bde37b93cae0321caf184133
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2077478Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Aya Elsayed <ayaelattar@google.com>
Cr-Commit-Position: refs/heads/master@{#745135}
parent 98c33104
......@@ -313,10 +313,10 @@
Update overdue
</message>
<message name="IDS_RELAUNCH_RECOMMENDED_BODY" desc="The body text of a dialog that tells users the device must be restarted.">
Your organization asks that you update this device
<ph name="organization_name">$1<ex>google.com</ex></ph> asks that you update this device
</message>
<message name="IDS_RELAUNCH_RECOMMENDED_OVERDUE_BODY" desc="The body text of a dialog that tells users the device must be restarted right now.">
Your organization requires an update to this device right away
<ph name="organization_name">$1<ex>google.com</ex></ph> requires an update to this device right away
</message>
<!-- Chrome OS Strings -->
......
......@@ -80,16 +80,24 @@ void RelaunchNotificationControllerPlatformImpl::SetDeadline(
void RelaunchNotificationControllerPlatformImpl::
RefreshRelaunchRecommendedTitle(bool past_deadline) {
std::string enterprise_display_domain =
g_browser_process->platform_part()
->browser_policy_connector_chromeos()
->GetEnterpriseDisplayDomain();
if (past_deadline) {
SystemTrayClient::Get()->SetUpdateNotificationState(
ash::NotificationStyle::kAdminRecommended,
l10n_util::GetStringUTF16(IDS_RELAUNCH_RECOMMENDED_OVERDUE_TITLE),
l10n_util::GetStringUTF16(IDS_RELAUNCH_RECOMMENDED_OVERDUE_BODY));
l10n_util::GetStringFUTF16(
IDS_RELAUNCH_RECOMMENDED_OVERDUE_BODY,
base::UTF8ToUTF16(enterprise_display_domain)));
} else {
SystemTrayClient::Get()->SetUpdateNotificationState(
ash::NotificationStyle::kAdminRecommended,
l10n_util::GetStringUTF16(IDS_RELAUNCH_RECOMMENDED_TITLE),
l10n_util::GetStringUTF16(IDS_RELAUNCH_RECOMMENDED_BODY));
l10n_util::GetStringFUTF16(
IDS_RELAUNCH_RECOMMENDED_BODY,
base::UTF8ToUTF16(enterprise_display_domain)));
}
}
......
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