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

Issue 2833893002: [Android WebView] Trigger minidump uploading on renderer crash. (Closed)

Created:
3 years, 8 months ago by gsennton
Modified:
3 years, 7 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android WebView] Trigger minidump uploading on renderer crash. In MultiProcess mode the WebView renderer process can crash without bringing down the browser process. Such a crash causes a minidump to be generated - with this CL that minidump is handled (copied, later to be uploaded) quickly after the renderer process crash instead of during the next WebView startup. BUG=674145 Review-Url: https://codereview.chromium.org/2833893002 Cr-Commit-Position: refs/heads/master@{#473871} Committed: https://chromium.googlesource.com/chromium/src/+/9c0a1e4d561f51b8aa0861a952b0612934f9bbe6

Patch Set 1 #

Total comments: 15

Patch Set 2 : Post copying-tasks to SERIAL_EXECUTOR instead of THREAD_POOL_EXECUTOR + add several comments. #

Total comments: 2

Patch Set 3 : Remove unused aw_browser_procces implementation (and rename the actual implementation). #

Patch Set 4 : Rebase over Shimi's native/ -> browser/ CL. #

Total comments: 2

Patch Set 5 : Move aw_browser_process.h into native-component in browser/ #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -22 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
A android_webview/browser/aw_browser_process.h View 1 chunk +14 lines, -0 lines 0 comments Download
A android_webview/browser/aw_browser_process.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_terminator.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java View 1 2 3 3 chunks +6 lines, -21 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java View 1 6 chunks +53 lines, -1 line 0 comments Download

Messages

Total messages: 25 (5 generated)
gsennton
ATM this code doesn't trigger anything because minidump generation for renderers is off (see crbug.com/713762) ...
3 years, 8 months ago (2017-04-20 20:32:47 UTC) #2
gsennton
https://codereview.chromium.org/2833893002/diff/1/android_webview/browser/aw_browser_terminator.cc File android_webview/browser/aw_browser_terminator.cc (right): https://codereview.chromium.org/2833893002/diff/1/android_webview/browser/aw_browser_terminator.cc#newcode89 android_webview/browser/aw_browser_terminator.cc:89: TriggerMinidumpUploading(); Oooh, another question for Toby: is the minidump ...
3 years, 8 months ago (2017-04-20 20:37:07 UTC) #3
paulmiller
https://codereview.chromium.org/2833893002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java (right): https://codereview.chromium.org/2833893002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java#newcode158 android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java:158: public static void setWebViewPackageName(String webViewPackageName) { On 2017/04/20 20:32:46, ...
3 years, 8 months ago (2017-04-20 23:38:51 UTC) #4
gsennton
https://codereview.chromium.org/2833893002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java (right): https://codereview.chromium.org/2833893002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java#newcode158 android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java:158: public static void setWebViewPackageName(String webViewPackageName) { On 2017/04/20 23:38:51, ...
3 years, 8 months ago (2017-04-21 15:46:33 UTC) #5
Tobias Sargeant
https://codereview.chromium.org/2833893002/diff/1/android_webview/browser/aw_browser_terminator.cc File android_webview/browser/aw_browser_terminator.cc (right): https://codereview.chromium.org/2833893002/diff/1/android_webview/browser/aw_browser_terminator.cc#newcode89 android_webview/browser/aw_browser_terminator.cc:89: TriggerMinidumpUploading(); On 2017/04/20 20:37:06, gsennton wrote: > Oooh, another ...
3 years, 8 months ago (2017-04-21 16:18:04 UTC) #6
paulmiller
https://codereview.chromium.org/2833893002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java (right): https://codereview.chromium.org/2833893002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java#newcode174 android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java:174: * @param updateMetricsConsent whether to update the metrics-consent value ...
3 years, 8 months ago (2017-04-21 17:50:02 UTC) #7
gsennton
https://codereview.chromium.org/2833893002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java (right): https://codereview.chromium.org/2833893002/diff/1/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java#newcode168 android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java:168: handleMinidumpsAndSetMetricsConsent(sWebViewPackageName, false /* updateMetricsConsent */); On 2017/04/21 16:18:04, Tobias ...
3 years, 8 months ago (2017-04-24 08:27:16 UTC) #8
gsennton
This should be fine now. PTAL :) https://codereview.chromium.org/2833893002/diff/1/android_webview/browser/aw_browser_terminator.cc File android_webview/browser/aw_browser_terminator.cc (right): https://codereview.chromium.org/2833893002/diff/1/android_webview/browser/aw_browser_terminator.cc#newcode89 android_webview/browser/aw_browser_terminator.cc:89: TriggerMinidumpUploading(); On ...
3 years, 8 months ago (2017-04-24 12:39:54 UTC) #9
Tobias Sargeant
https://codereview.chromium.org/2833893002/diff/20001/android_webview/native/aw_browser_process_impl.cc File android_webview/native/aw_browser_process_impl.cc (right): https://codereview.chromium.org/2833893002/diff/20001/android_webview/native/aw_browser_process_impl.cc#newcode10 android_webview/native/aw_browser_process_impl.cc:10: void TriggerMinidumpUploading() { Given that there's no abstract class ...
3 years, 8 months ago (2017-04-26 13:29:00 UTC) #10
gsennton
https://codereview.chromium.org/2833893002/diff/20001/android_webview/native/aw_browser_process_impl.cc File android_webview/native/aw_browser_process_impl.cc (right): https://codereview.chromium.org/2833893002/diff/20001/android_webview/native/aw_browser_process_impl.cc#newcode10 android_webview/native/aw_browser_process_impl.cc:10: void TriggerMinidumpUploading() { On 2017/04/26 13:29:00, Tobias Sargeant wrote: ...
3 years, 8 months ago (2017-04-26 14:21:04 UTC) #11
gsennton
Hey Bo! Toby suggested we add you on this CL to clear up this layering ...
3 years, 7 months ago (2017-04-28 13:45:42 UTC) #13
boliu
On 2017/04/28 13:45:42, gsennton wrote: > Hey Bo! Toby suggested we add you on this ...
3 years, 7 months ago (2017-04-28 18:17:26 UTC) #14
gsennton
Okidoke, I've rebased this over Shimi's native/ -> browser/ CL now. I'm still letting the ...
3 years, 7 months ago (2017-05-11 12:55:48 UTC) #15
boliu
On 2017/05/11 12:55:48, gsennton wrote: > Okidoke, I've rebased this over Shimi's native/ -> browser/ ...
3 years, 7 months ago (2017-05-11 14:09:42 UTC) #16
Tobias Sargeant
https://codereview.chromium.org/2833893002/diff/60001/android_webview/BUILD.gn File android_webview/BUILD.gn (right): https://codereview.chromium.org/2833893002/diff/60001/android_webview/BUILD.gn#newcode553 android_webview/BUILD.gn:553: "browser/aw_browser_process.h", Should this belong with the .cc file?
3 years, 7 months ago (2017-05-11 14:11:17 UTC) #17
gsennton
https://codereview.chromium.org/2833893002/diff/60001/android_webview/BUILD.gn File android_webview/BUILD.gn (right): https://codereview.chromium.org/2833893002/diff/60001/android_webview/BUILD.gn#newcode553 android_webview/BUILD.gn:553: "browser/aw_browser_process.h", On 2017/05/11 14:11:17, Tobias Sargeant wrote: > Should ...
3 years, 7 months ago (2017-05-11 14:58:41 UTC) #18
gsennton
Rebased, ptal Toby :)
3 years, 7 months ago (2017-05-22 19:56:38 UTC) #19
Tobias Sargeant
On 2017/05/22 19:56:38, gsennton wrote: > Rebased, ptal Toby :) LGTM
3 years, 7 months ago (2017-05-23 11:18:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2833893002/100001
3 years, 7 months ago (2017-05-23 11:26:43 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 12:59:40 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/9c0a1e4d561f51b8aa0861a952b0...

Powered by Google App Engine
This is Rietveld 408576698