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

Unified Diff: remoting/host/host_service_win.cc

Issue 9617027: Chromoting: Implemented security attention sequence (SAS) emulation on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 9 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/host_mock_objects.cc ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_service_win.cc
diff --git a/remoting/host/host_service_win.cc b/remoting/host/host_service_win.cc
index 66bfa096fcd27c56e1715595e64a462279c4316c..a404e6ed5961ad6189d45889aee70650a8454c9f 100644
--- a/remoting/host/host_service_win.cc
+++ b/remoting/host/host_service_win.cc
@@ -20,6 +20,7 @@
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/stringprintf.h"
+#include "base/threading/thread.h"
#include "base/utf_string_conversions.h"
#include "base/win/wrapped_window_proc.h"
@@ -45,6 +46,8 @@ const DWORD kServiceStopTimeoutMs = 30 * 1000;
// Session id that does not represent any session.
const uint32 kInvalidSession = 0xffffffff;
+const char kIoThreadName[] = "I/O thread";
+
// A window class for the session change notifications window.
static const char kSessionNotificationWindowClass[] =
"Chromoting_SessionNotificationWindow";
@@ -351,7 +354,16 @@ int HostService::Run() {
}
void HostService::RunMessageLoop() {
- WtsSessionProcessLauncher launcher(this, host_binary_);
+ // Launch the I/O thread.
+ base::Thread io_thread(kIoThreadName);
+ base::Thread::Options io_thread_options(MessageLoop::TYPE_IO, 0);
+ if (!io_thread.StartWithOptions(io_thread_options)) {
+ shutting_down_ = true;
+ stopped_event_.Signal();
+ return;
+ }
+
+ WtsSessionProcessLauncher launcher(this, host_binary_, &io_thread);
// Run the service.
message_loop_->Run();
« no previous file with comments | « remoting/host/host_mock_objects.cc ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698