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

Issue 58203002: Android: remove ContentViewCore from the renderer crash codepath. (Closed)

Created:
7 years, 1 month ago by ppi
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Android: remove ContentViewCore from the renderer crash codepath. This patch employs base::TerminationStatus to communicate the state of the oom bindings when a child process dies and exposes renderProcessGone() in WebContentsObserverAndroid, removing the need for ContentViewCore to be involved in the renderer crash codepath. This allows to drop tracking the pid of the renderer process in ContentViewCore and eliminates the need for the |tab_crashed_| flag in native ContentViewCoreImpl. BUG=314583 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233905

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebase. #

Patch Set 3 : Address Yaron's comments. #

Patch Set 4 : Rebase. #

Total comments: 6

Patch Set 5 : Address Jim's remarks. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -118 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M base/process/kill.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/guestview/webview/webview_guest.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/android/child_process_launcher_android.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/child_process_launcher_android.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 3 chunks +0 lines, -8 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 8 chunks +0 lines, -35 lines 0 comments Download
M content/browser/android/web_contents_observer_android.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/android/web_contents_observer_android.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 4 1 chunk +8 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 1 2 3 4 5 2 chunks +1 line, -8 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java View 1 chunk +0 lines, -9 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 9 chunks +5 lines, -43 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/WebContentsObserverAndroid.java View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestContentViewClientWrapper.java View 1 2 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
ppi
Hi Yaron, This is a follow-up on your hint, as promised in https://codereview.chromium.org/19969003/ :). Could ...
7 years, 1 month ago (2013-11-04 19:16:27 UTC) #1
Yaron
https://codereview.chromium.org/58203002/diff/1/chrome/browser/guestview/webview/webview_guest.cc File chrome/browser/guestview/webview/webview_guest.cc (right): https://codereview.chromium.org/58203002/diff/1/chrome/browser/guestview/webview/webview_guest.cc#newcode50 chrome/browser/guestview/webview/webview_guest.cc:50: case base::TERMINATION_STATUS_OOM_PROTECTED: #if defined(OS_ANDROID) wouldn't compile otherwise, right? I ...
7 years, 1 month ago (2013-11-05 01:48:43 UTC) #2
ppi
Thanks, Yaron! Could you take another look at patch set 3? https://codereview.chromium.org/58203002/diff/1/chrome/browser/guestview/webview/webview_guest.cc File chrome/browser/guestview/webview/webview_guest.cc (right): ...
7 years, 1 month ago (2013-11-05 13:58:18 UTC) #3
Yaron
lgtm +joth for aw and general sanity
7 years, 1 month ago (2013-11-06 01:08:17 UTC) #4
joth
aw lgtm, and the rest doesn't look insane to me from a quick scan through ...
7 years, 1 month ago (2013-11-06 01:51:18 UTC) #5
ppi
Thanks, Yaron and Jonathan! Adding OWNERs for the missing bits. Jim, could you please take ...
7 years, 1 month ago (2013-11-06 11:22:01 UTC) #6
jam
On 2013/11/06 11:22:01, ppi wrote: > Thanks, Yaron and Jonathan! Adding OWNERs for the missing ...
7 years, 1 month ago (2013-11-06 17:39:15 UTC) #7
ppi
Thanks, John! I see that Jim has an all-day event on calendar today - Brett, ...
7 years, 1 month ago (2013-11-06 19:17:00 UTC) #8
jar (doing other things)
LGTM for base ...but please address the nits https://codereview.chromium.org/58203002/diff/320001/content/browser/android/web_contents_observer_android.cc File content/browser/android/web_contents_observer_android.cc (right): https://codereview.chromium.org/58203002/diff/320001/content/browser/android/web_contents_observer_android.cc#newcode64 content/browser/android/web_contents_observer_android.cc:64: base::TerminationStatus ...
7 years, 1 month ago (2013-11-06 19:27:25 UTC) #9
ppi
Thanks a lot Jim and apologies for the indent nits (one experiment too far with ...
7 years, 1 month ago (2013-11-06 20:14:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/58203002/500001
7 years, 1 month ago (2013-11-08 10:51:34 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=221900
7 years, 1 month ago (2013-11-08 12:21:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/58203002/500001
7 years, 1 month ago (2013-11-08 12:23:31 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 15:52:57 UTC) #14
Message was sent while issue was closed.
Change committed as 233905

Powered by Google App Engine
This is Rietveld 408576698