| Index: components/mus/ws/event_dispatcher.cc
|
| diff --git a/components/mus/ws/event_dispatcher.cc b/components/mus/ws/event_dispatcher.cc
|
| index 57efcc1d9da32e677b6579c82426a99450b3f9fb..9b633b03831369eb76c65d8f72456d233c8a2a61 100644
|
| --- a/components/mus/ws/event_dispatcher.cc
|
| +++ b/components/mus/ws/event_dispatcher.cc
|
| @@ -315,8 +315,9 @@ bool EventDispatcher::AddAccelerator(uint32_t id,
|
|
|
| void EventDispatcher::RemoveAccelerator(uint32_t id) {
|
| auto it = accelerators_.find(id);
|
| - DCHECK(it != accelerators_.end());
|
| - accelerators_.erase(it);
|
| + // Clients may pass bogus ids.
|
| + if (it != accelerators_.end())
|
| + accelerators_.erase(it);
|
| }
|
|
|
| void EventDispatcher::ProcessEvent(const ui::Event& event) {
|
|
|