Commit e2aa9036 authored by Ana Salazar's avatar Ana Salazar Committed by Chromium LUCI CQ

Add new badge to multipaste option in the textfield context menu

Set the multipaste clipboard menu option as a new feature, depending on
whether or not the feature flag should show.

Bug: 1156270
Change-Id: I1b8c30bbb506c360a0206a31bbebea0286123d1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2618491Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Ana Salazar <anasalazar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841605}
parent ead10326
......@@ -93,6 +93,9 @@ void ViewsTextServicesContextMenuImpl::AddClipboardHistoryMenuOption(
const int target_index = index_of_paste + 1;
menu->InsertItemAt(target_index, IDS_APP_SHOW_CLIPBOARD_HISTORY,
l10n_util::GetStringUTF16(IDS_APP_SHOW_CLIPBOARD_HISTORY));
menu->SetIsNewFeatureAt(
target_index,
chromeos::features::IsClipboardHistoryContextMenuNudgeEnabled());
}
} // namespace ash
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