Commit 7cceb59b authored by Roman Aleksandrov's avatar Roman Aleksandrov Committed by Commit Bot

Managed Guest Session: Monitoring warning messages

Reuse existing in ash warning message.

Bug: 927331
Change-Id: I7632787964b124c3dcce649a504634c6182698ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1572352Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Reviewed-by: default avatarJacob Dufault <jdufault@chromium.org>
Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Roman Aleksandrov <raleksandrov@google.com>
Cr-Commit-Position: refs/heads/master@{#658485}
parent 8964034e
......@@ -1544,12 +1544,6 @@ This file contains the strings for ash.
<message name="IDS_ASH_LOGIN_PUBLIC_ACCOUNT_MONITORING_WARNING" desc="Template for text shown in the public account user pod, informing the user that this is a public, managed account.">
The device admin may monitor your browsing activity.
</message>
<message name="IDS_ASH_LOGIN_MANAGED_SESSION_MONITORING_FULL_WARNING" desc="Text shown in the public account user pod in case of risky configuration, informing the user that this session is managed and admin can monitor all activity.">
The administrator of this device has access to all activity, including passwords and communications.
</message>
<message name="IDS_ASH_LOGIN_MANAGED_SESSION_MONITORING_SOFT_WARNING" desc="Text shown in the public account user pod in case of non-risky configuration, informing the user that this session is managed and admin can monitor all activity.">
The device administrator may be able to monitor your activity.
</message>
<message name="IDS_ASH_LOGIN_PUBLIC_ACCOUNT_SIGNOUT_REMINDER" desc="Text shown in the public account user pod, reminding the user to log out.">
Your internet session will be cleared when you sign out. <ph name="LEARN_MORE">$1<ex>Learn more</ex></ph>
</message>
......
......@@ -20,6 +20,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/strings/utf_string_conversions.h"
#include "chromeos/strings/grit/chromeos_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/canvas.h"
......
......@@ -1715,9 +1715,6 @@
<message name="IDS_AUTO_LAUNCH_NOTIFICATION_TITLE" desc="Title of the notification which is shown when the managed guest session auto launched.">
Managed guest session
</message>
<message name="IDS_AUTO_LAUNCH_NOTIFICATION_MESSAGE" desc="Message of the notification which is shown when the managed guest session auto launched.">
The administrator of this device has access to all activity, including passwords and communications.
</message>
<message name="IDS_AUTO_LAUNCH_NOTIFICATION_BUTTON" desc="Text of the button.">
View details
</message>
......
......@@ -85,6 +85,7 @@
#include "chromeos/login/auth/key.h"
#include "chromeos/login/session/session_termination_manager.h"
#include "chromeos/settings/cros_settings_names.h"
#include "chromeos/strings/grit/chromeos_strings.h"
#include "components/account_id/account_id.h"
#include "components/arc/arc_util.h"
#include "components/google/core/common/google_util.h"
......@@ -1019,8 +1020,8 @@ void ExistingUserController::ShowAutoLaunchManagedGuestSessionNotification() {
l10n_util::GetStringUTF16(IDS_AUTO_LAUNCH_NOTIFICATION_BUTTON)));
const base::string16 title =
l10n_util::GetStringUTF16(IDS_AUTO_LAUNCH_NOTIFICATION_TITLE);
const base::string16 message =
l10n_util::GetStringUTF16(IDS_AUTO_LAUNCH_NOTIFICATION_MESSAGE);
const base::string16 message = l10n_util::GetStringUTF16(
IDS_ASH_LOGIN_MANAGED_SESSION_MONITORING_FULL_WARNING);
auto delegate =
base::MakeRefCounted<message_center::HandleNotificationClickDelegate>(
base::BindRepeating([](base::Optional<int> button_index) {
......
......@@ -133,6 +133,14 @@ Try tapping the mic to ask me anything.
Turn on Bluetooth to discover nearby devices
</message>
<!-- Managed guest session warnings -->
<message name="IDS_ASH_LOGIN_MANAGED_SESSION_MONITORING_FULL_WARNING" desc="Text shown in the public account user pod in case of risky configuration, informing the user that this session is managed and admin can monitor all activity.">
The administrator of this device has access to all activity, including passwords and communications.
</message>
<message name="IDS_ASH_LOGIN_MANAGED_SESSION_MONITORING_SOFT_WARNING" desc="Text shown in the public account user pod in case of non-risky configuration, informing the user that this session is managed and admin can monitor all activity.">
The device administrator may be able to monitor your activity.
</message>
<!-- Status tray enterprise management. -->
<message name="IDS_ASH_ENTERPRISE_DEVICE_MANAGED_BY" desc="Text for notifications showing that this device is enterpise managed. Used when the organization's domain name is available.">
This device is managed by <ph name="DOMAIN">$1<ex>acmecorp.com</ex></ph>.
......
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