Commit c37646df authored by Marina Ciocea's avatar Marina Ciocea Committed by Commit Bot

Remove second StopMonitor in UserInputMonitorLinux.

Cleanup double StopMonitor and unnecessary condition, leftover from mouse listener removal in https://crrev.com/2577573002.

Bug: 828864
Change-Id: Ia19c5bf4f81897f49b1c0eaf0f6d85a9cfff4984
Reviewed-on: https://chromium-review.googlesource.com/1007194Reviewed-by: default avatarMax Morin <maxmorin@chromium.org>
Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Commit-Queue: Marina Ciocea <marinaciocea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550032}
parent f1d68ed3
......@@ -105,7 +105,6 @@ UserInputMonitorLinuxCore::~UserInputMonitorLinuxCore() {
void UserInputMonitorLinuxCore::WillDestroyCurrentMessageLoop() {
DCHECK(io_task_runner_->BelongsToCurrentThread());
StopMonitor();
StopMonitor();
}
size_t UserInputMonitorLinuxCore::GetKeyPressCount() const {
......@@ -200,8 +199,6 @@ void UserInputMonitorLinuxCore::StopMonitor() {
XFree(x_record_range_);
x_record_range_ = NULL;
}
if (x_record_range_)
return;
// Context must be disabled via the control channel because we can't send
// any X protocol traffic over the data channel while it's recording.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment