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

Issue 1299513002: [Android] Add support for a hung renderer dialog (Closed)

Created:
5 years, 4 months ago by jdduke (slow)
Modified:
5 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Add support for a hung renderer dialog Implement the hung renderer dialog in terms of an infobar. Reduce the default hang timeout on Android from 30 seconds to 5 seconds. BUG=148136 Committed: https://crrev.com/b9cdfa9500bec95d05f19d840801610a79c77ce5 Cr-Commit-Position: refs/heads/master@{#347229}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Thorough dismissal #

Patch Set 3 : Use native infobars #

Total comments: 2

Patch Set 4 : Cleanup #

Total comments: 8

Patch Set 5 : Code review #

Patch Set 6 : Test #

Patch Set 7 : Remove observer, add UMA #

Patch Set 8 : New resources, UMA, cleanup, etc... #

Total comments: 6

Patch Set 9 : Code review #

Total comments: 25

Patch Set 10 : Code review #

Total comments: 2

Patch Set 11 : Rename histogram #

Total comments: 6

Patch Set 12 : Delegate cleanup #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -5 lines) Patch
A + chrome/android/java/res/drawable-hdpi/infobar_restore.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A + chrome/android/java/res/drawable-mdpi/infobar_restore.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A + chrome/android/java/res/drawable-xhdpi/infobar_restore.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A + chrome/android/java/res/drawable-xxhdpi/infobar_restore.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A + chrome/android/java/res/drawable-xxxhdpi/infobar_restore.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java View 1 2 3 4 5 6 7 8 1 chunk +90 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/android/hung_renderer_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/android/hung_renderer_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +81 lines, -0 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/tab_android.h View 1 2 3 4 5 6 7 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +34 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M components/infobars/core/infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/content_constants_internal.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (7 generated)
gone
https://codereview.chromium.org/1299513002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/1299513002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode2810 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:2810: public void onInfoBarDismissed(InfoBar infoBar) {} You probably also want ...
5 years, 4 months ago (2015-08-14 21:05:43 UTC) #2
gone
https://codereview.chromium.org/1299513002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/1299513002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode2798 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:2798: getInfoBarContainer().addInfoBar(mRendererUnresponsiveInfoBar); You probably want to make a native-side InfoBarDelegate. ...
5 years, 4 months ago (2015-08-14 21:07:28 UTC) #3
jdduke (slow)
Probably should have added a (WIP) to the title but early feedback appreciated :) https://codereview.chromium.org/1299513002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java ...
5 years, 4 months ago (2015-08-14 21:22:19 UTC) #4
gone
https://codereview.chromium.org/1299513002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/1299513002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode2798 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:2798: getInfoBarContainer().addInfoBar(mRendererUnresponsiveInfoBar); On 2015/08/14 21:22:19, jdduke wrote: > On 2015/08/14 ...
5 years, 4 months ago (2015-08-14 21:31:08 UTC) #5
jdduke (slow)
OK, switched to native InfoBars. After we get this into a reasonable state I'll add ...
5 years, 4 months ago (2015-08-18 17:39:30 UTC) #6
gone
https://codereview.chromium.org/1299513002/diff/40001/chrome/browser/android/hung_renderer_infobar_delegate.cc File chrome/browser/android/hung_renderer_infobar_delegate.cc (right): https://codereview.chromium.org/1299513002/diff/40001/chrome/browser/android/hung_renderer_infobar_delegate.cc#newcode18 chrome/browser/android/hung_renderer_infobar_delegate.cc:18: : web_contents_(web_contents) { On 2015/08/18 17:39:29, jdduke wrote: > ...
5 years, 4 months ago (2015-08-18 18:21:36 UTC) #7
gone
Ggiven how short the manual test case is, it seems that adding a InfoBarTest would ...
5 years, 4 months ago (2015-08-18 20:45:18 UTC) #8
jdduke (slow)
Added a test. https://codereview.chromium.org/1299513002/diff/60001/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/1299513002/diff/60001/chrome/browser/android/tab_android.cc#newcode829 chrome/browser/android/tab_android.cc:829: if (!hung_renderer_infobar_) On 2015/08/18 20:45:17, dfalcantara ...
5 years, 4 months ago (2015-08-21 21:18:31 UTC) #10
gone
https://codereview.chromium.org/1299513002/diff/60001/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/1299513002/diff/60001/chrome/browser/android/tab_android.cc#newcode829 chrome/browser/android/tab_android.cc:829: if (!hung_renderer_infobar_) On 2015/08/21 21:18:30, jdduke wrote: > On ...
5 years, 4 months ago (2015-08-21 21:39:30 UTC) #11
jdduke (slow)
Dan could you take another look? I've gone ahead with the approach you suggested (looking ...
5 years, 3 months ago (2015-09-01 17:25:10 UTC) #12
gone
Yeah, lgtm. Thanks! https://chromiumcodereview.appspot.com/1299513002/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java (right): https://chromiumcodereview.appspot.com/1299513002/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java#newcode196 chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java:196: * Verifies the unresponsive renderer notification ...
5 years, 3 months ago (2015-09-01 18:49:34 UTC) #13
jdduke (slow)
+pkasting for components/infobars +asvitkine for tools/metrics +sievers for content/common https://codereview.chromium.org/1299513002/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java (right): https://codereview.chromium.org/1299513002/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java#newcode196 chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java:196: ...
5 years, 3 months ago (2015-09-01 21:49:20 UTC) #15
Peter Kasting
https://codereview.chromium.org/1299513002/diff/180001/chrome/browser/android/hung_renderer_infobar_delegate.cc File chrome/browser/android/hung_renderer_infobar_delegate.cc (right): https://codereview.chromium.org/1299513002/diff/180001/chrome/browser/android/hung_renderer_infobar_delegate.cc#newcode24 chrome/browser/android/hung_renderer_infobar_delegate.cc:24: LogAction(REMOVE); This is just browser shutdown, right? Is logging ...
5 years, 3 months ago (2015-09-01 22:24:05 UTC) #16
jdduke (slow)
https://codereview.chromium.org/1299513002/diff/180001/chrome/browser/android/hung_renderer_infobar_delegate.cc File chrome/browser/android/hung_renderer_infobar_delegate.cc (right): https://codereview.chromium.org/1299513002/diff/180001/chrome/browser/android/hung_renderer_infobar_delegate.cc#newcode24 chrome/browser/android/hung_renderer_infobar_delegate.cc:24: LogAction(REMOVE); On 2015/09/01 22:24:05, Peter Kasting wrote: > This ...
5 years, 3 months ago (2015-09-02 00:04:01 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/1299513002/diff/220001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1299513002/diff/220001/tools/metrics/histograms/histograms.xml#newcode14466 tools/metrics/histograms/histograms.xml:14466: +<histogram name="HungRenderer.MobileInfoBar.Event" Nit: This is adding a new top-level ...
5 years, 3 months ago (2015-09-02 15:26:10 UTC) #19
jdduke (slow)
+oshima for chrome/app/theme https://codereview.chromium.org/1299513002/diff/220001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1299513002/diff/220001/tools/metrics/histograms/histograms.xml#newcode14466 tools/metrics/histograms/histograms.xml:14466: +<histogram name="HungRenderer.MobileInfoBar.Event" On 2015/09/02 15:26:10, Alexei ...
5 years, 3 months ago (2015-09-02 16:56:07 UTC) #21
Alexei Svitkine (slow)
lgtm
5 years, 3 months ago (2015-09-02 16:59:33 UTC) #22
oshima
c/a/theme lgtm
5 years, 3 months ago (2015-09-02 17:11:27 UTC) #23
Peter Kasting
LGTM https://codereview.chromium.org/1299513002/diff/180001/chrome/browser/android/hung_renderer_infobar_delegate.cc File chrome/browser/android/hung_renderer_infobar_delegate.cc (right): https://codereview.chromium.org/1299513002/diff/180001/chrome/browser/android/hung_renderer_infobar_delegate.cc#newcode24 chrome/browser/android/hung_renderer_infobar_delegate.cc:24: LogAction(REMOVE); On 2015/09/02 00:04:01, jdduke wrote: > On ...
5 years, 3 months ago (2015-09-02 21:52:46 UTC) #24
jdduke (slow)
https://codereview.chromium.org/1299513002/diff/240001/chrome/browser/android/hung_renderer_infobar_delegate.cc File chrome/browser/android/hung_renderer_infobar_delegate.cc (right): https://codereview.chromium.org/1299513002/diff/240001/chrome/browser/android/hung_renderer_infobar_delegate.cc#newcode24 chrome/browser/android/hung_renderer_infobar_delegate.cc:24: return; On 2015/09/02 21:52:45, Peter Kasting wrote: > The ...
5 years, 3 months ago (2015-09-02 23:00:35 UTC) #25
no sievers
content lgtm
5 years, 3 months ago (2015-09-03 18:10:01 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1299513002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1299513002/280001
5 years, 3 months ago (2015-09-03 18:41:20 UTC) #29
commit-bot: I haz the power
Committed patchset #13 (id:280001)
5 years, 3 months ago (2015-09-03 20:27:01 UTC) #30
commit-bot: I haz the power
5 years, 3 months ago (2015-09-03 20:27:44 UTC) #31
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/b9cdfa9500bec95d05f19d840801610a79c77ce5
Cr-Commit-Position: refs/heads/master@{#347229}

Powered by Google App Engine
This is Rietveld 408576698