Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1569)

Issue 1067733006: Add extra parameter to BrowserChildProcessCrashed to pass the exit_code at time of crash/termination (Closed)

Created:
5 years, 8 months ago by Will Harris
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add extra parameter to BrowserChildProcessCrashed to pass the exit_code at time of crash/termination. Wire this into all the existing callers. Add a new child process watcher in chrome to be notified on child process crashes. This will confirm whether users with RESULT_CODE_INVALID_SANDBOX_STATE are crashing on background start (--no-startup-window) or not. This also adds required framework to paint a sad tab UI from this class in the future. BUG=472324, 453541 TEST=Apply patch in http://pastebin.com/uEDxngBa and verify histogram ChildProcess.InvalidSandboxStateCrash.NoStartupWindow is recorded. Committed: https://crrev.com/22e2f4a23530e0b22c8f37dd91e4e803a0a6e355 Cr-Commit-Position: refs/heads/master@{#327380}

Patch Set 1 #

Patch Set 2 : remove stray line #

Patch Set 3 : add include #

Patch Set 4 : pull exit_code into function. remove unneeded code. #

Patch Set 5 : mac compile fix #

Total comments: 4

Patch Set 6 : rebase #

Patch Set 7 : code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -20 lines) Patch
M chrome/browser/browser_process_impl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/chrome_child_process_watcher.h View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/chrome_child_process_watcher.cc View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_stability_metrics_provider.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/chrome_stability_metrics_provider.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/plugin_metrics_provider.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/plugin_metrics_provider.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chromecast/browser/metrics/cast_stability_metrics_provider.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chromecast/browser/metrics/cast_stability_metrics_provider.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/crash/browser/crash_dump_manager_android.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/crash/browser/crash_dump_manager_android.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/bootstrap_sandbox_mac.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/mach_broker_mac.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/mach_broker_mac.mm View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/browser_child_process_observer.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/public/browser/child_process_data.h View 1 chunk +8 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
Will Harris
PTAL jam -> content/ thestig -> chrome/ asvitkine -> histograms.xml
5 years, 8 months ago (2015-04-15 23:28:14 UTC) #3
jam
On 2015/04/15 23:28:14, Will Harris wrote: > PTAL > > jam -> content/ > thestig ...
5 years, 8 months ago (2015-04-16 04:14:57 UTC) #4
Will Harris
On 2015/04/16 04:14:57, jam wrote: > On 2015/04/15 23:28:14, Will Harris wrote: > > PTAL ...
5 years, 8 months ago (2015-04-16 04:25:19 UTC) #5
jam
On 2015/04/16 04:25:19, Will Harris wrote: > On 2015/04/16 04:14:57, jam wrote: > > On ...
5 years, 8 months ago (2015-04-16 14:43:05 UTC) #6
Will Harris
On 2015/04/16 14:43:05, jam wrote: > On 2015/04/16 04:25:19, Will Harris wrote: > > On ...
5 years, 8 months ago (2015-04-16 16:24:34 UTC) #7
Will Harris
PTAL Adding that extra parameter touched a lot of code but all the changes are ...
5 years, 8 months ago (2015-04-17 01:57:51 UTC) #11
jam
On 2015/04/17 01:57:51, Will Harris wrote: > PTAL > > Adding that extra parameter touched ...
5 years, 8 months ago (2015-04-23 21:40:13 UTC) #12
Alexei Svitkine (slow)
lgtm
5 years, 8 months ago (2015-04-27 19:26:18 UTC) #13
Lei Zhang
chrome/ lgtm with some nits https://codereview.chromium.org/1067733006/diff/80001/chrome/browser/chrome_child_process_watcher.cc File chrome/browser/chrome_child_process_watcher.cc (right): https://codereview.chromium.org/1067733006/diff/80001/chrome/browser/chrome_child_process_watcher.cc#newcode1 chrome/browser/chrome_child_process_watcher.cc:1: // Copyright 2014 The ...
5 years, 8 months ago (2015-04-27 21:47:35 UTC) #14
Will Harris
https://codereview.chromium.org/1067733006/diff/80001/chrome/browser/chrome_child_process_watcher.cc File chrome/browser/chrome_child_process_watcher.cc (right): https://codereview.chromium.org/1067733006/diff/80001/chrome/browser/chrome_child_process_watcher.cc#newcode1 chrome/browser/chrome_child_process_watcher.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 7 months ago (2015-04-28 21:15:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1067733006/120001
5 years, 7 months ago (2015-04-28 21:19:20 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-04-28 22:39:46 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 22:41:15 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/22e2f4a23530e0b22c8f37dd91e4e803a0a6e355
Cr-Commit-Position: refs/heads/master@{#327380}

Powered by Google App Engine
This is Rietveld 408576698