Index: mash/browser_driver/browser_driver_application_delegate.cc |
diff --git a/mash/browser_driver/browser_driver_application_delegate.cc b/mash/browser_driver/browser_driver_application_delegate.cc |
index 8e1b633b3799e4e74e83b1b367ccfaf53030c421..438477f8bb5f0cb7af07e1794cff74e2a30fedb8 100644 |
--- a/mash/browser_driver/browser_driver_application_delegate.cc |
+++ b/mash/browser_driver/browser_driver_application_delegate.cc |
@@ -84,12 +84,12 @@ void BrowserDriverApplicationDelegate::AddAccelerators() { |
if (binding_.is_bound()) |
binding_.Unbind(); |
+ registrar->SetHandler(binding_.CreateInterfacePtrAndBind()); |
// If the window manager restarts, the handler pipe will close and we'll need |
// to re-add our accelerators when the window manager comes back up. |
binding_.set_connection_error_handler( |
base::Bind(&BrowserDriverApplicationDelegate::AddAccelerators, |
base::Unretained(this))); |
- registrar->SetHandler(binding_.CreateInterfacePtrAndBind()); |
for (const AcceleratorSpec& spec : g_spec) { |
registrar->AddAccelerator( |