| Index: remoting/host/desktop_session_win.cc
|
| diff --git a/remoting/host/desktop_session_win.cc b/remoting/host/desktop_session_win.cc
|
| index 10fb011bb52db82fe14079cef71eca8e0106eea2..fdefc28c1eb9845609ba6e56a77f0003ffb5a3cc 100644
|
| --- a/remoting/host/desktop_session_win.cc
|
| +++ b/remoting/host/desktop_session_win.cc
|
| @@ -67,7 +67,7 @@ void DesktopSessionWin::OnChannelConnected(int32 peer_pid) {
|
| // from the desktop process.
|
| desktop_process_.Set(OpenProcess(PROCESS_DUP_HANDLE, false, peer_pid));
|
| if (!desktop_process_.IsValid()) {
|
| - RestartDesktopProcess(FROM_HERE);
|
| + CrashDesktopProcess(FROM_HERE);
|
| return;
|
| }
|
|
|
| @@ -88,7 +88,7 @@ bool DesktopSessionWin::OnMessageReceived(const IPC::Message& message) {
|
|
|
| if (!handled) {
|
| LOG(ERROR) << "Received unexpected IPC type: " << message.type();
|
| - RestartDesktopProcess(FROM_HERE);
|
| + CrashDesktopProcess(FROM_HERE);
|
| }
|
|
|
| return handled;
|
| @@ -143,7 +143,7 @@ void DesktopSessionWin::OnDesktopSessionAgentAttached(
|
| if (!daemon_process()->OnDesktopSessionAgentAttached(id(),
|
| desktop_process_,
|
| desktop_pipe)) {
|
| - RestartDesktopProcess(FROM_HERE);
|
| + CrashDesktopProcess(FROM_HERE);
|
| }
|
| }
|
|
|
| @@ -161,12 +161,11 @@ void DesktopSessionWin::OnInjectSas() {
|
| LOG(ERROR) << "Failed to inject Secure Attention Sequence.";
|
| }
|
|
|
| -void DesktopSessionWin::RestartDesktopProcess(
|
| +void DesktopSessionWin::CrashDesktopProcess(
|
| const tracked_objects::Location& location) {
|
| DCHECK(main_task_runner_->BelongsToCurrentThread());
|
|
|
| - launcher_->Send(new ChromotingDaemonDesktopMsg_Crash(
|
| - location.function_name(), location.file_name(), location.line_number()));
|
| + launcher_->Crash(location);
|
| }
|
|
|
| } // namespace remoting
|
|
|