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

Unified Diff: remoting/host/daemon_process.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: 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
Index: remoting/host/daemon_process.cc
diff --git a/remoting/host/daemon_process.cc b/remoting/host/daemon_process.cc
index c82c96e5a0a00d5b5ec17bba9a4948e76f2acc73..942d0daf37f9cbe1a14afefcca5cefed67f70faa 100644
--- a/remoting/host/daemon_process.cc
+++ b/remoting/host/daemon_process.cc
@@ -9,6 +9,7 @@
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
+#include "base/location.h"
#include "base/single_thread_task_runner.h"
#include "net/base/net_util.h"
#include "remoting/base/auto_thread_task_runner.h"
@@ -177,9 +178,9 @@ void DaemonProcess::CreateDesktopSession(int terminal_id) {
void DaemonProcess::CrashNetworkProcess(
const tracked_objects::Location& location) {
- SendToNetwork(new ChromotingDaemonNetworkMsg_Crash(
- location.function_name(), location.file_name(), location.line_number()));
+ DCHECK(caller_task_runner()->BelongsToCurrentThread());
+ DoCrashNetworkProcess(location);
DeleteAllDesktopSessions();
}

Powered by Google App Engine
This is Rietveld 408576698