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

Unified Diff: remoting/host/desktop_session_win.cc

Issue 12545006: The worker process launcher can now ask the worker to crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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/desktop_session_win.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « remoting/host/desktop_session_win.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698