Index: chrome/renderer/about_handler.cc |
diff --git a/chrome/renderer/about_handler.cc b/chrome/renderer/about_handler.cc |
index f53302bdff848e9af0035f1d70d7cbce6cb47d12..e748aa13a38dc98e2bc3ed5337727b248897d4d5 100644 |
--- a/chrome/renderer/about_handler.cc |
+++ b/chrome/renderer/about_handler.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/renderer/about_handler.h" |
+#include "base/process_util.h" |
#include "base/threading/platform_thread.h" |
#include "chrome/common/about_handler.h" |
#include "googleurl/src/gurl.h" |
@@ -14,6 +15,7 @@ typedef void (*AboutHandlerFuncPtr)(); |
// chrome/common/about_handler.cc. |
static const AboutHandlerFuncPtr about_urls_handlers[] = { |
AboutHandler::AboutCrash, |
+ AboutHandler::AboutKill, |
AboutHandler::AboutHang, |
AboutHandler::AboutShortHang, |
NULL, |
@@ -44,6 +46,11 @@ void AboutHandler::AboutCrash() { |
} |
// static |
+void AboutHandler::AboutKill() { |
+ base::KillProcess(base::GetCurrentProcessHandle(), 1, false); |
+} |
+ |
+// static |
void AboutHandler::AboutHang() { |
for (;;) { |
base::PlatformThread::Sleep(1000); |