Add ability to silence the error shown when a user tries to use Live Caption with the Media Foundation renderer

This CL adds a checkbox to the error message shown when a user plays a
video using the Media Foundation renderer with the Live Caption feature
enabled that silences the error message for the current site.

Bug: b/184185967
Change-Id: I142a950ca49eceb62ba6a32f529aea39f86e3544
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3570170
Reviewed-by: Peter Kasting <[email protected]>
Reviewed-by: Abigail Klein <[email protected]>
Commit-Queue: Evan Liu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#992409}
diff --git a/components/live_caption_strings.grdp b/components/live_caption_strings.grdp
index 7bb8b49..9fc9d45 100644
--- a/components/live_caption_strings.grdp
+++ b/components/live_caption_strings.grdp
@@ -25,6 +25,9 @@
   <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_MEDIA_FOUNDATION_RENDERER_ERROR_CHECKBOX" desc="Text next to the checkbox that silences the warning that Live Caption is unavailable because the renderer is using hardware-based decryption.">
+    Don't show this message again 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>