Commit fc486991 authored by Dana Fried's avatar Dana Fried Committed by Commit Bot

Add "New" badge on media dialog captions toggle.

Badge displays forever until removed in code.
Future enhancements could show the badge conditionally.

Bug: 1055150
Change-Id: I112190c7be5c609994dce3d94db81032f744c1cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2487911
Commit-Queue: Dana Fried <dfried@chromium.org>
Reviewed-by: default avatarAbigail Klein <abigailbklein@google.com>
Cr-Commit-Position: refs/heads/master@{#820514}
parent 57d6081c
......@@ -19,6 +19,7 @@
#include "chrome/browser/ui/views/global_media_controls/media_dialog_view_observer.h"
#include "chrome/browser/ui/views/global_media_controls/media_notification_container_impl_view.h"
#include "chrome/browser/ui/views/global_media_controls/media_notification_list_view.h"
#include "chrome/browser/ui/views/in_product_help/new_badge_label.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
#include "components/sync_preferences/pref_service_syncable.h"
......@@ -258,7 +259,8 @@ void MediaDialogView::Init() {
live_caption_image->SetImage(
gfx::CreateVectorIcon(kLiveCaptionIcon, kLiveCaptionImageWidthDip,
SkColor(gfx::kGoogleGrey700)));
views::Label* live_caption_title = new views::Label(
// TODO(crbug.com/1055150): Replace NewBadgeLabel with Label by M93.
views::Label* live_caption_title = new NewBadgeLabel(
l10n_util::GetStringUTF16(IDS_GLOBAL_MEDIA_CONTROLS_LIVE_CAPTION));
live_caption_title->SetHorizontalAlignment(
gfx::HorizontalAlignment::ALIGN_LEFT);
......
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