Skip to content

Commit

Permalink
Migrate DesktopMediaListView to AXNodeData::SetNameChecked
Browse files Browse the repository at this point in the history
AXNodeData::SetName was marked as deprecated in favor of SetNameChecked
which includes DCHECKs for things expected to be true. This commit
migrates DesktopMediaListView from SetName to SetNameChecked.

AX-Relnotes: n/a

Bug: 1348081
Change-Id: Ica451bb7124ecd417edbc579d2d2f640b8327406
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3906044
Reviewed-by: Peter Boström <pbos@chromium.org>
Commit-Queue: Joanmarie Diggs <jdiggs@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1053253}
  • Loading branch information
joanmarie authored and Chromium LUCI CQ committed Sep 29, 2022
1 parent f6dcf68 commit eaa8c7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,5 @@ DesktopMediaSourceView* DesktopMediaListView::GetSelectedView() {

void DesktopMediaListView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ax::mojom::Role::kGroup;
node_data->SetName(accessible_name_);
node_data->SetNameChecked(accessible_name_);
}

0 comments on commit eaa8c7e

Please sign in to comment.