|
This adds some plumbing for propagating the status and error code of a
renderer process that went away so that we can tell at the UI level
what happened to the tab: did it crash, or was it killed by the OOM
killer (or some other reason). This is in preparation for
implementing a new UI for when a process is killed by the OOM on
ChromeOS which handles it differently from a crash.
Most of the changes are modifications of the argument list to include
a status and error code for the exited process, but in addition the
following was done:
- Changed the name of DidProcessCrash to GetTerminationStatus.
- Added some new enum values to TerminationStatus enum (and named it)
in process_util.h, so it can be used as the status returned by
WhatHappenedToProcess.
- Improved process_util_unittest to actually test for crashing and
terminated processes on all platforms.
- Added a new notification for renderers that were killed.
- Added error code information to crash notification.
- Added status and error code information to renderer IPC message for
RenderViewGone.
- Added a UMA histogram count for number of renderer kills.
BUG=none
TEST=ran new unit test. Test passes on try servers.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=f70d0be
Total comments: 33
Total comments: 2
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+464 lines, -194 lines) |
Patch |
 |
M |
base/process_util.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+19 lines, -7 lines |
0 comments
|
Download
|
 |
M |
base/process_util_posix.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+24 lines, -17 lines |
0 comments
|
Download
|
 |
M |
base/process_util_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+158 lines, -17 lines |
0 comments
|
Download
|
 |
M |
base/process_util_win.cc
|
View
|
1
2
3
4
|
2 chunks |
+38 lines, -25 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_child_process_host.h
|
View
|
1
2
3
4
|
2 chunks |
+17 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_child_process_host.cc
|
View
|
1
2
3
4
|
1 chunk |
+24 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/child_process_launcher.h
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/child_process_launcher.cc
|
View
|
1
2
3
4
|
1 chunk |
+13 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/child_process_security_policy_browsertest.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_crash_recovery_browsertest.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/sandboxed_extension_unpacker.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/sandboxed_extension_unpacker.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/importer/importer.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/importer/importer.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/in_process_webkit/indexed_db_key_utility_client.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/in_process_webkit/indexed_db_key_utility_client.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/metrics/metrics_service.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/nacl_host/nacl_process_host.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/nacl_host/nacl_process_host.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profile_import_process_host.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profile_import_process_host.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/browser_render_process_host.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+13 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_process_host.h
|
View
|
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_view_host.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_view_host.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_view_host_delegate.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host.h
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_view.h
|
View
|
1
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_view_gtk.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_view_gtk.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_view_mac.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_view_win.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_view_win.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/test/test_render_view_host.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/test/web_cache_manager_browsertest.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/interstitial_page.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/interstitial_page.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/web_contents_unittest.cc
|
View
|
4
5
6
|
5 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/task_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/utility_process_host.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/utility_process_host.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/web_resource/web_resource_service.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/zygote_host_linux.h
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/zygote_host_linux.cc
|
View
|
1
2
3
4
|
2 chunks |
+18 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/zygote_main_linux.cc
|
View
|
1
2
3
4
|
2 chunks |
+17 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/common/notification_type.h
|
View
|
|
1 chunk |
+12 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/common/render_messages_internal.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/result_codes.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|