sensors: Use different strings in the UI depending on GenericSensorsExtraClasses
The GenericSensorsExtraClasses currently enables extra sensor types such as
ambient-light sensors. By default, we only enable motion sensors (i.e.
accelerometers, gyroscopes etc), so saying "motion or light sensors" in
settings or the page info modal was confusing.
We now duplicate some strings in the .grd files so that we refer to "motion
sensors" by default, and "motion and/or light sensors" when the
GenericSensorsExtraClasses feature is manually enabled.
Bug: 954133
Change-Id: I07b9798b6183839cc538246a9a38237fecd86720
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1578601
Commit-Queue: Raphael Kubo da Costa <[email protected]>
Reviewed-by: Dan Beam <[email protected]>
Reviewed-by: Balazs Engedy <[email protected]>
Reviewed-by: Finnur Thorarinsson <[email protected]>
Auto-Submit: Raphael Kubo da Costa <[email protected]>
Cr-Commit-Position: refs/heads/master@{#654038}
diff --git a/components/page_info_strings.grdp b/components/page_info_strings.grdp
index 8d4125db..094afab 100644
--- a/components/page_info_strings.grdp
+++ b/components/page_info_strings.grdp
@@ -244,6 +244,9 @@
<message name="IDS_PAGE_INFO_TYPE_SENSORS" desc="The label used for the sensor permission controls in the Page Info popup. Title case format.">
Motion or Light Sensors
</message>
+ <message name="IDS_PAGE_INFO_TYPE_MOTION_SENSORS" desc="The label used for the motion sensor (accelerometer, gyroscope, magnetometer) permission controls in the Page Info popup. Title case format.">
+ Motion Sensors
+ </message>
<message name="IDS_PAGE_INFO_TYPE_USB" desc="The label used for the USB permission controls in the Page Info popup.">
USB devices
</message>