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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 11234034: Crash the network process when a fatal daemon-to-network protocol error encountered. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« remoting/host/daemon_process.cc ('K') | « remoting/host/daemon_process_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 09ee9dc40c4f9c98aa3759b6451169cd2bb440b3..420465c91656600f1db2d6e386c9980819c159c7 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -170,6 +170,15 @@ class HostProcess
return true;
}
+ // Crashes the process in response to a daemon's request. The daemon passes
+ // the location of the code that detected the fatal error resulted in this
+ // request.
+ void OnCrash(const std::string& function_name,
+ const std::string& file_name,
+ const int& line_number) {
+ CHECK(false);
+ }
+
#else // !defined(REMOTING_MULTI_PROCESS)
bool InitWithCommandLine(const CommandLine* cmd_line) {
@@ -296,6 +305,8 @@ class HostProcess
#if defined(REMOTING_MULTI_PROCESS)
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(HostProcess, message)
+ IPC_MESSAGE_HANDLER(ChromotingDaemonNetworkMsg_Crash,
+ OnCrash)
IPC_MESSAGE_HANDLER(ChromotingDaemonNetworkMsg_Configuration,
OnConfigUpdated)
IPC_MESSAGE_FORWARD(ChromotingDaemonNetworkMsg_TerminalDisconnected,
« remoting/host/daemon_process.cc ('K') | « remoting/host/daemon_process_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698