diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 16:33:40 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 16:33:40 +0000 |
commit | 42f5c7ef330e266261387a0c49560b500f2f7e40 (patch) | |
tree | 0b1a1d8bf7ec6b47a754a2d5d344584b10a8e92a /remoting/protocol | |
parent | 52684393b659011bacd38fba139589f01f3dc3f5 (diff) | |
download | chromium_src-42f5c7ef330e266261387a0c49560b500f2f7e40.zip chromium_src-42f5c7ef330e266261387a0c49560b500f2f7e40.tar.gz chromium_src-42f5c7ef330e266261387a0c49560b500f2f7e40.tar.bz2 |
Fix stuck keys problem with Chromoting when host disconnects while keys are
down.
BUG=84544
TEST=manual
Review URL: http://codereview.chromium.org/7799014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol')
-rw-r--r-- | remoting/protocol/input_sender.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/remoting/protocol/input_sender.cc b/remoting/protocol/input_sender.cc index fb4102c..ff45ce2 100644 --- a/remoting/protocol/input_sender.cc +++ b/remoting/protocol/input_sender.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -28,6 +28,8 @@ InputSender::~InputSender() { } void InputSender::InjectKeyEvent(const KeyEvent* event, Task* done) { + DCHECK(done); + EventMessage message; message.set_sequence_number(base::Time::Now().ToInternalValue()); message.mutable_key_event()->CopyFrom(*event); @@ -35,6 +37,8 @@ void InputSender::InjectKeyEvent(const KeyEvent* event, Task* done) { } void InputSender::InjectMouseEvent(const MouseEvent* event, Task* done) { + DCHECK(done); + EventMessage message; message.set_sequence_number(base::Time::Now().ToInternalValue()); message.mutable_mouse_event()->CopyFrom(*event); |