Commit 07aa40bf authored by Igor Ruvinov's avatar Igor Ruvinov Committed by Chromium LUCI CQ

Decrease message severity to Info for downgrading metrics reporting.

The metrics reporting policy is automatically downgraded to "recommended" level due to privacy reasons. This change modifies the corresponding policy table message from type Error to type to Info, as it is an informative message to make admins aware of the automatic downgrade.

Bug: 1155602
Change-Id: Iebd13bb2d6363cf40daa792f2dcdbe0a023eff33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643061Reviewed-by: default avatarJulian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Igor Ruvinov <igorruvinov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#846159}
parent b34f23c9
...@@ -166,7 +166,7 @@ void DowngradeMetricsReportingToRecommendedPolicy(PolicyMap* policies) { ...@@ -166,7 +166,7 @@ void DowngradeMetricsReportingToRecommendedPolicy(PolicyMap* policies) {
if (policy && policy->level != POLICY_LEVEL_RECOMMENDED && policy->value() && if (policy && policy->level != POLICY_LEVEL_RECOMMENDED && policy->value() &&
policy->value()->is_bool() && policy->value()->GetBool()) { policy->value()->is_bool() && policy->value()->GetBool()) {
policy->level = POLICY_LEVEL_RECOMMENDED; policy->level = POLICY_LEVEL_RECOMMENDED;
policy->AddMessage(PolicyMap::MessageType::kError, policy->AddMessage(PolicyMap::MessageType::kInfo,
IDS_POLICY_IGNORED_MANDATORY_REPORTING_POLICY); IDS_POLICY_IGNORED_MANDATORY_REPORTING_POLICY);
} }
} }
......
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