|
Introduce bad_message.h for chrome and NaCl.
Where needed, add variants of bad_message::ReceivedBadMessage that take a
BrowserMessageFilter instead of a RenderProcessHost.
Rename BrowserMessageFilter::BadMessageReceived to be ::ShutdownForBadMessage. It's now only called from the bad_message helper functions after logging the error to UMA.
Use the new bad_message helpers in all places that previously called BrowserMessageFilter::BadMessageReceived().
BUG=None
TEST=None
Committed: https://crrev.com/167948263fa1c560de096b877be8a151cfed3ff7
Cr-Commit-Position: refs/heads/master@{#332488}
Total comments: 7
Total comments: 10
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+408 lines, -190 lines) |
Patch |
 |
A + |
chrome/browser/bad_message.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+17 lines, -14 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/bad_message.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+19 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/devtools_ui_bindings.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/webrtc_logging_handler_host.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/nacl.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/nacl/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/nacl/browser/bad_message.h
|
View
|
1
2
3
4
5
|
1 chunk |
+43 lines, -43 lines |
0 comments
|
Download
|
 |
A + |
components/nacl/browser/bad_message.cc
|
View
|
|
1 chunk |
+23 lines, -22 lines |
0 comments
|
Download
|
 |
M |
components/nacl/browser/nacl_file_host.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/nacl/browser/nacl_host_message_filter.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/appcache/appcache_dispatcher_host.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/appcache/appcache_dispatcher_host.cc
|
View
|
|
14 chunks |
+20 lines, -18 lines |
0 comments
|
Download
|
 |
M |
content/browser/bad_message.h
|
View
|
1
2
3
4
5
|
2 chunks |
+67 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/bad_message.cc
|
View
|
|
1 chunk |
+15 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/cache_storage/cache_storage_dispatcher_host.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/dom_storage/dom_storage_message_filter.cc
|
View
|
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/fileapi/fileapi_message_filter.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/fileapi/fileapi_message_filter.cc
|
View
|
|
7 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_dispatcher_host.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/loader/resource_dispatcher_host_impl.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/midi_host.cc
|
View
|
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/midi_host_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/notifications/notification_message_filter.cc
|
View
|
1
2
3
4
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/database_message_filter.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host.cc
|
View
|
|
20 chunks |
+38 lines, -23 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_dispatcher_host_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/service_worker_handle_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/public/browser/browser_message_filter.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/browser_message_filter.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/bad_message.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+89 lines, -0 lines |
0 comments
|
Download
|
Total messages: 38 (11 generated)
|