|
Move the ProcessWatcher methods out of content/common/process_watcher into base/process_util, alongside the other process methods.
The only non-trivial move change is to the Windows implementation, where I changed KillProcess to use an exit code of kProcessKilledExitCode instead of content::RESULT_CODE_HUNG. cpu said that the existing code was incorrect, since GetTerminationStatus() should be mapping that result to TERMINATION_STATUS_PROCESS_WAS_KILLED. So I changed the exit code to kProcessKilledExitCode. This might make the UMA stats for killed processes to go up (and crashed to go down), but that will be an accounting change and should be zero-sum.
BUG= 98716
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111371
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+403 lines, -501 lines) |
Patch |
|
M |
base/process_util.h
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/process_util_mac.mm
|
View
|
|
4 chunks |
+159 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/process_util_posix.cc
|
View
|
|
1 chunk |
+97 lines, -0 lines |
2 comments
|
Download
|
|
M |
base/process_util_unittest.cc
|
View
|
|
1 chunk |
+45 lines, -0 lines |
1 comment
|
Download
|
|
M |
base/process_util_win.cc
|
View
|
|
4 chunks |
+71 lines, -0 lines |
1 comment
|
Download
|
|
M |
chrome/browser/platform_util_chromeos.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/platform_util_linux.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/printing/printer_manager_dialog_linux.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/options/advanced_options_utils_x11.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/browser_child_process_host.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/child_process_launcher.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/zygote_host_linux.cc
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/zygote_main_linux.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
D |
content/common/process_watcher.h
|
View
|
|
1 chunk |
+0 lines, -46 lines |
0 comments
|
Download
|
|
D |
content/common/process_watcher_mac.cc
|
View
|
|
1 chunk |
+0 lines, -170 lines |
0 comments
|
Download
|
|
D |
content/common/process_watcher_posix.cc
|
View
|
|
1 chunk |
+0 lines, -105 lines |
0 comments
|
Download
|
|
D |
content/common/process_watcher_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -64 lines |
0 comments
|
Download
|
|
D |
content/common/process_watcher_win.cc
|
View
|
|
1 chunk |
+0 lines, -85 lines |
0 comments
|
Download
|
|
M |
content/content_common.gypi
|
View
|
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/content_tests.gypi
|
View
|
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|