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

Unified Diff: remoting/protocol/host_event_dispatcher.cc

Issue 1365663003: Add UMA histograms for more detailed latency tracking on the CRD host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 5 years, 3 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/protocol/host_event_dispatcher.h ('k') | remoting/protocol/performance_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_event_dispatcher.cc
diff --git a/remoting/protocol/host_event_dispatcher.cc b/remoting/protocol/host_event_dispatcher.cc
index 8006eac3242191b1cbd944e4389cde0ca64f9e31..f3fa8d9d7b041d80c3b7710638ae0356429d4b20 100644
--- a/remoting/protocol/host_event_dispatcher.cc
+++ b/remoting/protocol/host_event_dispatcher.cc
@@ -19,11 +19,9 @@ HostEventDispatcher::HostEventDispatcher()
input_stub_(nullptr),
parser_(base::Bind(&HostEventDispatcher::OnMessageReceived,
base::Unretained(this)),
- reader()) {
-}
+ reader()) {}
-HostEventDispatcher::~HostEventDispatcher() {
-}
+HostEventDispatcher::~HostEventDispatcher() {}
void HostEventDispatcher::OnMessageReceived(scoped_ptr<EventMessage> message,
const base::Closure& done_task) {
@@ -31,8 +29,8 @@ void HostEventDispatcher::OnMessageReceived(scoped_ptr<EventMessage> message,
base::ScopedClosureRunner done_runner(done_task);
- if (message->has_timestamp() && !event_timestamp_callback_.is_null())
- event_timestamp_callback_.Run(message->timestamp());
+ if (!on_input_event_callback_.is_null())
+ on_input_event_callback_.Run(message->timestamp());
if (message->has_key_event()) {
const KeyEvent& event = message->key_event();
« no previous file with comments | « remoting/protocol/host_event_dispatcher.h ('k') | remoting/protocol/performance_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698