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

Unified Diff: remoting/host/chromoting_host_context.cc

Issue 6489031: Run event executor on the ui thread to remove the need to explicitly XFlush() the XTest calls. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed glint warnings. Created 9 years, 10 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
Index: remoting/host/chromoting_host_context.cc
diff --git a/remoting/host/chromoting_host_context.cc b/remoting/host/chromoting_host_context.cc
index 053f4117938ac4a1249b8d180fc02b91ca70ee33..8ed61afc29265a71a1ba4f980473f42b495bef46 100644
--- a/remoting/host/chromoting_host_context.cc
+++ b/remoting/host/chromoting_host_context.cc
@@ -11,9 +11,10 @@
namespace remoting {
-ChromotingHostContext::ChromotingHostContext()
+ChromotingHostContext::ChromotingHostContext(MessageLoop* ui_message_loop)
: main_thread_("ChromotingMainThread"),
- encode_thread_("ChromotingEncodeThread") {
+ encode_thread_("ChromotingEncodeThread"),
+ ui_message_loop_(ui_message_loop) {
}
ChromotingHostContext::~ChromotingHostContext() {
@@ -49,4 +50,8 @@ MessageLoop* ChromotingHostContext::network_message_loop() {
return jingle_thread_.message_loop();
}
+MessageLoop* ChromotingHostContext::ui_message_loop() {
+ return ui_message_loop_;
+}
+
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698