| Index: components/mus/ws/window_tree_host_impl.cc
|
| diff --git a/components/mus/ws/window_tree_host_impl.cc b/components/mus/ws/window_tree_host_impl.cc
|
| index 7360710d1e66021f04d47313a1bd18a1432f231d..fd4f6d70a9782056f9a75f09f77eff2a48700838 100644
|
| --- a/components/mus/ws/window_tree_host_impl.cc
|
| +++ b/components/mus/ws/window_tree_host_impl.cc
|
| @@ -139,9 +139,12 @@ void WindowTreeHostImpl::SetTitle(const mojo::String& title) {
|
| display_manager_->SetTitle(title.To<base::string16>());
|
| }
|
|
|
| -void WindowTreeHostImpl::AddAccelerator(uint32_t id,
|
| - mojom::EventMatcherPtr event_matcher) {
|
| - event_dispatcher_.AddAccelerator(id, event_matcher.Pass());
|
| +void WindowTreeHostImpl::AddAccelerator(
|
| + uint32_t id,
|
| + mojom::EventMatcherPtr event_matcher,
|
| + const AddAcceleratorCallback& callback) {
|
| + bool success = event_dispatcher_.AddAccelerator(id, event_matcher.Pass());
|
| + callback.Run(success);
|
| }
|
|
|
| void WindowTreeHostImpl::RemoveAccelerator(uint32_t id) {
|
|
|