| Index: ui/views/controls/button/custom_button.cc
|
| diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
|
| index f9901dd6f9f30122a5248cbf3d980cbc29f20b54..bd5124c0b0e3c75861e317c8a4b5aca155127670 100644
|
| --- a/ui/views/controls/button/custom_button.cc
|
| +++ b/ui/views/controls/button/custom_button.cc
|
| @@ -84,10 +84,8 @@ void CustomButton::SetHotTracked(bool is_hot_tracked) {
|
| if (state_ != STATE_DISABLED)
|
| SetState(is_hot_tracked ? STATE_HOVERED : STATE_NORMAL);
|
|
|
| - if (is_hot_tracked && GetWidget()) {
|
| - GetWidget()->NotifyAccessibilityEvent(
|
| - this, ui::AccessibilityTypes::EVENT_FOCUS, true);
|
| - }
|
| + if (is_hot_tracked)
|
| + NotifyAccessibilityEvent(ui::AccessibilityTypes::EVENT_FOCUS, true);
|
| }
|
|
|
| bool CustomButton::IsHotTracked() const {
|
|
|