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

Unified Diff: remoting/host/local_input_monitor_thread_linux.h

Issue 8775021: Fix race condition disconnecting hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use scoped_refptr instead of synchronization. Created 9 years, 1 month 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
Index: remoting/host/local_input_monitor_thread_linux.h
diff --git a/remoting/host/local_input_monitor_thread_linux.h b/remoting/host/local_input_monitor_thread_linux.h
index d30e7c4b8992cf65beaa1fdb2a328b2dbfe1a88f..bc4eb9b8c059f702e7c437e466319dc69a754696 100644
--- a/remoting/host/local_input_monitor_thread_linux.h
+++ b/remoting/host/local_input_monitor_thread_linux.h
@@ -6,6 +6,7 @@
#define LOCAL_INPUT_MONITOR_THREAD_LINUX_H_
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "base/threading/simple_thread.h"
#include "third_party/skia/include/core/SkPoint.h"
@@ -27,7 +28,7 @@ class LocalInputMonitorThread : public base::SimpleThread {
void LocalKeyPressed(int key_code, bool down);
private:
- ChromotingHost* host_;
+ scoped_refptr<ChromotingHost> host_;
int wakeup_pipe_[2];
Display* display_;
bool alt_pressed_;

Powered by Google App Engine
This is Rietveld 408576698