|
|
Add UMA histograms and logging for bad IPC message handling
Many different places in the Chrome codebase handle unexpected IPC data
by killing the renderer. This can result in hard-to-debug sad tab pages.
Some, but not all, of these locations log an error; others record UMA
user actions. This CL fixes most sites to both log and record metrics.
It also switches the metrics to be histograms instead of user actions
because we don't need the extra timestamp data from user actions and
most of these sorts of metrics live in histograms.
BUG= 462687
TEST=unit_tests
Committed: https://crrev.com/da2505817c8cac8331a0fcab1902e71f3c2b7daf
Cr-Commit-Position: refs/heads/master@{#321598}
Total comments: 1
Total comments: 1
Total comments: 15
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+318 lines, -50 lines) |
Patch |
 |
A |
content/browser/bad_message.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/bad_message.cc
|
View
|
1
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_child_process_host_impl.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/navigation_controller_impl.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_frame_host_impl.cc
|
View
|
1
2
|
5 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_view_host_impl.cc
|
View
|
1
2
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_impl.cc
|
View
|
1
2
|
6 chunks |
+8 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_version.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/render_process_host.h
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_render_process_host.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/public/test/mock_render_process_host.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
extensions/browser/bad_message.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
A |
extensions/browser/bad_message.cc
|
View
|
1
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/blob_holder.cc
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_host.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/guest_view/extension_options/extension_options_guest.cc
|
View
|
1
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/guest_view/extension_view/extension_view_guest.cc
|
View
|
1
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
extensions/extensions.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/metrics/actions/actions.xml
|
View
|
1
2
3
4
5
6
|
9 chunks |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
|
2 chunks |
+48 lines, -0 lines |
0 comments
|
Download
|
Total messages: 31 (12 generated)
|