Skip to content

Commit

Permalink
[M98] Unregister Accelerators when AccessiblePaneView is destroyed.
Browse files Browse the repository at this point in the history
This CL makes sure that a focus change listener and all Accelerators are
unregistered when the AccessiblePaneView is going to be destroyed.

(cherry picked from commit 7125ad1)

Bug: 1284293
Change-Id: Icd11523be7ab5728e181148a8fd1baec5349513e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3429899
Reviewed-by: Balazs Engedy <engedy@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Illia Klimov <elklm@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#966217}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3450213
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/branch-heads/4758@{#1121}
Cr-Branched-From: 4a2cf4b-refs/heads/main@{#950365}
  • Loading branch information
Illia Klimov authored and Chromium LUCI CQ committed Feb 9, 2022
1 parent 3211a63 commit 068ee7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/views/accessible_pane_view.cc
Expand Up @@ -54,7 +54,7 @@ AccessiblePaneView::AccessiblePaneView()

AccessiblePaneView::~AccessiblePaneView() {
if (pane_has_focus_) {
focus_manager_->RemoveFocusChangeListener(this);
RemovePaneFocus();
}
}

Expand Down

0 comments on commit 068ee7a

Please sign in to comment.