Skip to content

Commit

Permalink
Migrate NewBadgeLabel 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 NewBadgeLabel from SetName to SetNameChecked.

AX-Relnotes: n/a

Bug: 1348081
Change-Id: Ic92266d04bc7ca9e0a7970dfb1e695343b339667
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3905003
Reviewed-by: Peter Boström <pbos@chromium.org>
Commit-Queue: Joanmarie Diggs <jdiggs@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1053234}
  • Loading branch information
joanmarie authored and Chromium LUCI CQ committed Sep 29, 2022
1 parent bb40b98 commit dbecc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/user_education/views/new_badge_label.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void NewBadgeLabel::GetAccessibleNodeData(ui::AXNodeData* node_data) {
accessible_name.push_back(' ');
accessible_name.append(views::NewBadge::GetNewBadgeAccessibleDescription());
}
node_data->SetName(accessible_name);
node_data->SetNameChecked(accessible_name);
}

gfx::Size NewBadgeLabel::CalculatePreferredSize() const {
Expand Down

0 comments on commit dbecc9a

Please sign in to comment.