0

Battery saver OngoingProcesses compat

OngoingProcesses reduces the screen space allowed for pinned
notifications. Battery Saver uses a pinned notification to indicate that
it is on, but its title is clipped when using OngoingProcesses. This CL
shortens the title to fit.

Bug: b:327483801
Test:--enable-features=CrosBatterySaver:
BatterySaverNotificationBehavior/kBSMOptIn/
BatterySaverActivationChargePercent/90,
OngoingProcesses

Change-Id: I591a3a1d097cf3f50acdfb6657db971ecd2d89de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5588025
Auto-Submit: Charles Dick <cwd@google.com>
Reviewed-by: Michael Wojcicka <mwoj@google.com>
Commit-Queue: Michael Wojcicka <mwoj@google.com>
Cr-Commit-Position: refs/heads/main@{#1309696}
This commit is contained in:
Charles William Dick
2024-06-04 00:00:24 +00:00
committed by Chromium LUCI CQ
parent a18234361d
commit 91f21a9eb7
2 changed files with 2 additions and 2 deletions

@ -2819,7 +2819,7 @@ You can also use the keyboard shortcut. First, highlight text, then press <ph na
Connect your device to power.
</message>
<message name="IDS_ASH_STATUS_TRAY_LOW_BATTERY_BSM_AUTOENABLED_TITLE" desc="The title for the notification displayed when device battery level is low, and battery saver was just enabled.">
Low battery. Battery Saver turned on.
Low battery. Battery Saver is on
</message>
<message name="IDS_ASH_STATUS_TRAY_LOW_BATTERY_BSM_AUTOENABLED_MESSAGE" desc="The notification body text stating features are limited because of battery saver, alongside the remaining battery percentage, and the estimated time remaining.">
<ph name="percentage">$1<ex>20%</ex></ph>% battery left (about <ph name="time_left">$2<ex>25 minutes</ex></ph>).

@ -1 +1 @@
f450a1071963bbba053f184d4a2abd762ef429d8
431a791d686b7ac07127d72671959f4569a9fe45