| 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 4ed90e2918ab4cc41cfb83aa30882fe62feafba9..356d274b4c5516279391feae9810dbf0bd2d7904 100644
|
| --- a/ui/views/controls/button/custom_button.cc
|
| +++ b/ui/views/controls/button/custom_button.cc
|
| @@ -318,11 +318,7 @@ void CustomButton::OnGestureEvent(ui::GestureEvent* event) {
|
|
|
| bool CustomButton::AcceleratorPressed(const ui::Accelerator& accelerator) {
|
| SetState(STATE_NORMAL);
|
| - // TODO(beng): remove once NotifyClick takes ui::Event.
|
| - ui::MouseEvent synthetic_event(
|
| - ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(), ui::EventTimeForNow(),
|
| - ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON);
|
| - NotifyClick(synthetic_event);
|
| + NotifyClick(accelerator.ToKeyEvent());
|
| return true;
|
| }
|
|
|
|
|