Show error message in the caption bubble when using Moho

This CL implements an error message that is shown when a user has the
Live Caption feature enabled and plays audio from a website that uses
hardware-based decryption (i.e. Netflix).

More details at go/live-caption-moho.

TODO in a subsequent CL: Either display the error message once per
website or provide the user with a way of silencing the error.

Bug: b/184185967
Change-Id: I17bb4dbf810f31f034861a074f32c777389d6445
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3523516
Reviewed-by: Xiaohan Wang <[email protected]>
Reviewed-by: Will Harris <[email protected]>
Reviewed-by: David Tseng <[email protected]>
Commit-Queue: Evan Liu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#985015}
diff --git a/components/live_caption_strings.grdp b/components/live_caption_strings.grdp
index f9a2e414..7bb8b49 100644
--- a/components/live_caption_strings.grdp
+++ b/components/live_caption_strings.grdp
@@ -19,6 +19,12 @@
   <message name="IDS_LIVE_CAPTION_BUBBLE_ERROR" desc="Error message for the Live Caption bubble when Live Captions are unavailable.">
     Live Caption is not available right now
   </message>
+  <message name="IDS_LIVE_CAPTION_BUBBLE_CONTENT_SETTINGS" desc="Text of Content Settings links.">
+    protected content IDs
+  </message>
+  <message name="IDS_LIVE_CAPTION_BUBBLE_MEDIA_FOUNDATION_RENDERER_ERROR" desc="Error message for the Live Caption bubble when Live Captions are unavailable because the renderer is using hardware-based decryption.">
+    Live Caption is not available for this media. To get captions, block <ph name="CONTENT_SETTINGS">$1<ex>protected content IDs</ex></ph> for this site.
+  </message>
   <message name="IDS_LIVE_CAPTION_BUBBLE_APPEAR_SCREENREADER_ANNOUNCEMENT" desc="Announcement to screen readers on ChromeOS when the Live Caption bubble appears to inform users of how to focus the bubble.">
     Live Caption visible, use window switcher to focus
   </message>