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

Unified Diff: chrome/renderer/about_handler.cc

Issue 6053012: This adds a "killed tab" page and pages reload when killed on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indent Created 9 years, 11 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 | « chrome/renderer/about_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/renderer/about_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698