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

Issue 8462015: Tests for WebUI Hung Renderer Dialog (Closed)

Created:
9 years, 1 month ago by wyck
Modified:
9 years, 1 month ago
Reviewers:
flackr
CC:
chromium-reviews, arv (Not doing code reviews), Paweł Hajdan Jr.
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Tests for WebUI Hung Renderer Dialog Adds a WebUIBrowserTest for WebUI Hung Renderer Dialog. Also modifies HungRendererDialog to allow it to be called in a test without killing processes or restarting hang timers. See previous attempt: http://codereview.chromium.org/8372042 See revert of that attempt: http://codereview.chromium.org/8497001/ BUG=102073 TEST=browser_tests HungRendererDialogUITest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109984

Patch Set 1 #

Total comments: 2

Patch Set 2 : is_enabled flag is now private #

Patch Set 3 : TabContentsObserver #

Total comments: 2

Patch Set 4 : Implementation moved to cc file #

Patch Set 5 : oops. removed virtual keyword from cc #

Patch Set 6 : added comment. #

Total comments: 1

Patch Set 7 : fixed order of declarations #

Patch Set 8 : catching up with master #

Patch Set 9 : missing virtual keyword on destructor (caught on mac try) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -29 lines) Patch
M chrome/browser/resources/hung_renderer_dialog.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/hung_renderer_dialog.h View 1 2 3 4 5 6 7 8 3 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/hung_renderer_dialog.cc View 1 2 3 4 5 6 6 chunks +58 lines, -26 lines 1 comment Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/webui/hung_renderer_dialog_test.js View 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/test/data/webui/hung_renderer_dialog_ui_test-inl.h View 1 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
wyck
Please review.
9 years, 1 month ago (2011-11-10 15:17:26 UTC) #1
flackr
http://codereview.chromium.org/8462015/diff/1/chrome/browser/ui/webui/hung_renderer_dialog.h File chrome/browser/ui/webui/hung_renderer_dialog.h (right): http://codereview.chromium.org/8462015/diff/1/chrome/browser/ui/webui/hung_renderer_dialog.h#newcode23 chrome/browser/ui/webui/hung_renderer_dialog.h:23: static void ShowHungRendererDialog(TabContents* contents, bool is_enabled); Don't include the ...
9 years, 1 month ago (2011-11-10 16:49:00 UTC) #2
wyck
PTAL
9 years, 1 month ago (2011-11-11 04:15:01 UTC) #3
wyck
http://codereview.chromium.org/8462015/diff/1/chrome/browser/ui/webui/hung_renderer_dialog.h File chrome/browser/ui/webui/hung_renderer_dialog.h (right): http://codereview.chromium.org/8462015/diff/1/chrome/browser/ui/webui/hung_renderer_dialog.h#newcode23 chrome/browser/ui/webui/hung_renderer_dialog.h:23: static void ShowHungRendererDialog(TabContents* contents, bool is_enabled); On 2011/11/10 16:49:00, ...
9 years, 1 month ago (2011-11-11 04:15:52 UTC) #4
flackr
LGTM
9 years, 1 month ago (2011-11-11 15:03:53 UTC) #5
wyck
I added the TabContentsObserver as in hung_renderer_dialog_gtk.cc, as per rbyers' request. Please review additions.
9 years, 1 month ago (2011-11-14 15:30:39 UTC) #6
flackr
http://codereview.chromium.org/8462015/diff/9001/chrome/browser/ui/webui/hung_renderer_dialog.h File chrome/browser/ui/webui/hung_renderer_dialog.h (right): http://codereview.chromium.org/8462015/diff/9001/chrome/browser/ui/webui/hung_renderer_dialog.h#newcode53 chrome/browser/ui/webui/hung_renderer_dialog.h:53: }; Move function bodies to the .cc file. The ...
9 years, 1 month ago (2011-11-14 15:48:24 UTC) #7
wyck
http://codereview.chromium.org/8462015/diff/9001/chrome/browser/ui/webui/hung_renderer_dialog.h File chrome/browser/ui/webui/hung_renderer_dialog.h (right): http://codereview.chromium.org/8462015/diff/9001/chrome/browser/ui/webui/hung_renderer_dialog.h#newcode53 chrome/browser/ui/webui/hung_renderer_dialog.h:53: }; On 2011/11/14 15:48:24, flackr wrote: > Move function ...
9 years, 1 month ago (2011-11-14 18:08:38 UTC) #8
flackr
LGTM with nit. http://codereview.chromium.org/8462015/diff/11004/chrome/browser/ui/webui/hung_renderer_dialog.h File chrome/browser/ui/webui/hung_renderer_dialog.h (right): http://codereview.chromium.org/8462015/diff/11004/chrome/browser/ui/webui/hung_renderer_dialog.h#newcode55 chrome/browser/ui/webui/hung_renderer_dialog.h:55: ~HungRendererDialog(); nit: Constructors and destructors should ...
9 years, 1 month ago (2011-11-14 18:21:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wyck@chromium.org/8462015/14004
9 years, 1 month ago (2011-11-14 19:58:30 UTC) #10
commit-bot: I haz the power
Can't apply patch for file chrome/chrome_tests.gypi. While running patch -p1 --forward --force; patching file chrome/chrome_tests.gypi ...
9 years, 1 month ago (2011-11-14 19:58:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wyck@chromium.org/8462015/15008
9 years, 1 month ago (2011-11-14 21:16:43 UTC) #12
commit-bot: I haz the power
Try job failure for 8462015-15008 (retry) on mac_rel for step "compile" (clobber build). It's a ...
9 years, 1 month ago (2011-11-14 22:09:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wyck@chromium.org/8462015/16015
9 years, 1 month ago (2011-11-14 22:38:24 UTC) #14
commit-bot: I haz the power
Change committed as 109984
9 years, 1 month ago (2011-11-15 00:02:07 UTC) #15
wyck
9 years, 1 month ago (2011-11-15 01:56:43 UTC) #16
http://codereview.chromium.org/8462015/diff/16015/chrome/browser/ui/webui/hun...
File chrome/browser/ui/webui/hung_renderer_dialog.cc (right):

http://codereview.chromium.org/8462015/diff/16015/chrome/browser/ui/webui/hun...
chrome/browser/ui/webui/hung_renderer_dialog.cc:38:
HungRendererDialog::ShowHungRendererDialog(contents, true);
Aw Snap!  This shouldn't be here.  This caused the revert.  :(

Powered by Google App Engine
This is Rietveld 408576698