| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/win/wts_console_session_process_driver.h" | 5 #include "remoting/host/win/wts_console_session_process_driver.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void WtsConsoleSessionProcessDriver::OnSessionAttached(uint32 session_id) { | 75 void WtsConsoleSessionProcessDriver::OnSessionAttached(uint32 session_id) { |
| 76 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 76 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
| 77 | 77 |
| 78 if (stoppable_state() != Stoppable::kRunning) { | 78 if (stoppable_state() != Stoppable::kRunning) { |
| 79 return; | 79 return; |
| 80 } | 80 } |
| 81 | 81 |
| 82 DCHECK(launcher_.get() == NULL); | 82 DCHECK(launcher_.get() == NULL); |
| 83 | 83 |
| 84 // Construct the host binary name. | 84 // Construct the host binary name. |
| 85 FilePath host_binary; | 85 base::FilePath host_binary; |
| 86 if (!GetInstalledBinaryPath(kHostBinaryName, &host_binary)) { | 86 if (!GetInstalledBinaryPath(kHostBinaryName, &host_binary)) { |
| 87 Stop(); | 87 Stop(); |
| 88 return; | 88 return; |
| 89 } | 89 } |
| 90 | 90 |
| 91 // Create a Delegate capable of launching an elevated process in the session. | 91 // Create a Delegate capable of launching an elevated process in the session. |
| 92 scoped_ptr<WtsSessionProcessDelegate> delegate( | 92 scoped_ptr<WtsSessionProcessDelegate> delegate( |
| 93 new WtsSessionProcessDelegate(caller_task_runner_, | 93 new WtsSessionProcessDelegate(caller_task_runner_, |
| 94 io_task_runner_, | 94 io_task_runner_, |
| 95 host_binary, | 95 host_binary, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 122 if (!launcher_) | 122 if (!launcher_) |
| 123 return; | 123 return; |
| 124 | 124 |
| 125 if (!sas_injector_) | 125 if (!sas_injector_) |
| 126 sas_injector_ = SasInjector::Create(); | 126 sas_injector_ = SasInjector::Create(); |
| 127 if (!sas_injector_->InjectSas()) | 127 if (!sas_injector_->InjectSas()) |
| 128 LOG(ERROR) << "Failed to inject Secure Attention Sequence."; | 128 LOG(ERROR) << "Failed to inject Secure Attention Sequence."; |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace remoting | 131 } // namespace remoting |
| OLD | NEW |