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

Unified Diff: remoting/protocol/input_sender.cc

Issue 7799014: Fix stuck keys problem with Chromoting when host disconnects while keys are (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update copyright Created 9 years, 4 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 | « remoting/host/client_session.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/input_sender.cc
diff --git a/remoting/protocol/input_sender.cc b/remoting/protocol/input_sender.cc
index fb4102cb28745a3fb082ce608cec80f7c99ed170..ff45ce203cdda2d151605c90b807a371061adc3d 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);
« no previous file with comments | « remoting/host/client_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698