Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Unified Diff: mash/browser_driver/browser_driver_application_delegate.cc

Issue 1617893003: mash: Fix crash in browser driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698