diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/render_process_host.cc | 2 | ||||
-rw-r--r-- | chrome/browser/render_view_host.cc | 3 | ||||
-rw-r--r-- | chrome/browser/views/hung_renderer_view.cc | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/render_process_host.cc b/chrome/browser/render_process_host.cc index 2520651..feb1e32 100644 --- a/chrome/browser/render_process_host.cc +++ b/chrome/browser/render_process_host.cc @@ -509,7 +509,7 @@ bool RenderProcessHost::FastShutdownIfPossible() { } // Otherwise, call TerminateProcess. Using exit code 0 means that UMA won't // treat this as a renderer crash. - ::TerminateProcess(proc, 0); + ::TerminateProcess(proc, ResultCodes::NORMAL_EXIT); return true; } diff --git a/chrome/browser/render_view_host.cc b/chrome/browser/render_view_host.cc index 156db86..7fe7e4e 100644 --- a/chrome/browser/render_view_host.cc +++ b/chrome/browser/render_view_host.cc @@ -33,6 +33,7 @@ #include <vector> #include "base/string_util.h" +#include "chrome/app/result_codes.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/cross_site_request_manager.h" #include "chrome/browser/navigation_entry.h" @@ -1190,7 +1191,7 @@ void RenderViewHost::NotifyRendererUnresponsive() { // If the tab hangs in the beforeunload/unload handler there's really // nothing we can do to recover. We can safely kill the process and the // Browser will deal with the crash appropriately. - TerminateProcess(process()->process(), 0); + TerminateProcess(process()->process(), ResultCodes::HUNG); return; } diff --git a/chrome/browser/views/hung_renderer_view.cc b/chrome/browser/views/hung_renderer_view.cc index 2434118..b121b00 100644 --- a/chrome/browser/views/hung_renderer_view.cc +++ b/chrome/browser/views/hung_renderer_view.cc @@ -29,6 +29,7 @@ #include "chrome/browser/views/hung_renderer_view.h" +#include "chrome/app/result_codes.h" #include "chrome/app/theme/theme_resources.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/render_view_host.h" @@ -333,7 +334,7 @@ void HungRendererWarningView::ButtonPressed( if (sender == kill_button_) { // Kill the process. HANDLE process = contents_->process()->process(); - TerminateProcess(process, 0); + TerminateProcess(process, ResultCodes::HUNG); } } |