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

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)

Created:
3 years, 10 months ago by Bret
Modified:
3 years, 10 months ago
Reviewers:
tapted, Peter Kasting, sky, pcc1
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Harmony - convert hung renderer dialog. Also added the dialog to BrowserDialogTest. Also did some refactoring on DialogClientView to avoid hardcoding the minimum button width and to apply the button row insets more coherently. BUG=652507 Review-Url: https://codereview.chromium.org/2660553005 Cr-Commit-Position: refs/heads/master@{#451497} Committed: https://chromium.googlesource.com/chromium/src/+/b621d8cec36bec73ef3eacddbcd7c998aee80cae

Patch Set 1 #

Patch Set 2 : wrong constant #

Patch Set 3 : remove extra padding above buttons #

Patch Set 4 : add hung renderer to dialog tests, WIP #

Patch Set 5 : add workaround note #

Patch Set 6 : remove test friends #

Total comments: 20

Patch Set 7 : comments 1 #

Total comments: 10

Patch Set 8 : merge #

Total comments: 9

Patch Set 9 : comments 2 #

Total comments: 17

Patch Set 10 : comments 3 #

Total comments: 20

Patch Set 11 : fix merge and imports #

Patch Set 12 : comments 4 #

Total comments: 7

Patch Set 13 : adjust comment #

Total comments: 2

Patch Set 14 : change dialog_client_view layout #

Patch Set 15 : disable dialog test on osx #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -139 lines) Patch
M chrome/browser/ui/views/chrome_views_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/harmony_layout_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/layout_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/harmony/layout_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.h View 1 2 3 4 5 6 7 8 9 5 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +51 lines, -64 lines 0 comments Download
A chrome/browser/ui/views/hung_renderer_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -7 lines 0 comments Download
M ui/views/layout/layout_constants.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/views_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/views_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -5 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +46 lines, -48 lines 0 comments Download
M ui/views/window/dialog_client_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 51 (15 generated)
Bret
pkasting@: general review tapted@: DialogBrowserTest review https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc File chrome/browser/ui/test/browser_dialog_browsertest.cc (right): https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc#newcode70 chrome/browser/ui/test/browser_dialog_browsertest.cc:70: options.wait = true; ...
3 years, 10 months ago (2017-02-01 00:05:30 UTC) #5
tapted
https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc File chrome/browser/ui/test/browser_dialog_browsertest.cc (right): https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc#newcode70 chrome/browser/ui/test/browser_dialog_browsertest.cc:70: options.wait = true; On 2017/02/01 00:05:30, Bret Sepulveda wrote: ...
3 years, 10 months ago (2017-02-01 00:52:49 UTC) #6
Bret
https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc File chrome/browser/ui/test/browser_dialog_browsertest.cc (right): https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc#newcode70 chrome/browser/ui/test/browser_dialog_browsertest.cc:70: options.wait = true; On 2017/02/01 00:52:48, tapted wrote: > ...
3 years, 10 months ago (2017-02-01 02:21:46 UTC) #7
Peter Kasting
Did not do a complete review, more some quick looks + responses to questions. https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc ...
3 years, 10 months ago (2017-02-02 00:32:30 UTC) #8
Bret
https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc File chrome/browser/ui/test/browser_dialog_browsertest.cc (right): https://codereview.chromium.org/2660553005/diff/100001/chrome/browser/ui/test/browser_dialog_browsertest.cc#newcode70 chrome/browser/ui/test/browser_dialog_browsertest.cc:70: options.wait = true; On 2017/02/02 00:32:30, Peter Kasting wrote: ...
3 years, 10 months ago (2017-02-03 01:47:18 UTC) #9
tapted
lgtm % nits. you'll need pkasting too https://codereview.chromium.org/2660553005/diff/140001/chrome/browser/ui/collected_cookies_browsertest.cc File chrome/browser/ui/collected_cookies_browsertest.cc (right): https://codereview.chromium.org/2660553005/diff/140001/chrome/browser/ui/collected_cookies_browsertest.cc#newcode25 chrome/browser/ui/collected_cookies_browsertest.cc:25: // DialogBrowserTest: ...
3 years, 10 months ago (2017-02-03 02:07:55 UTC) #10
Bret
https://codereview.chromium.org/2660553005/diff/140001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/2660553005/diff/140001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode25 chrome/browser/ui/views/chrome_views_delegate.cc:25: #include "chrome/browser/ui/views/harmony/layout_delegate.h" On 2017/02/03 02:07:54, tapted wrote: > remove? ...
3 years, 10 months ago (2017-02-03 21:58:36 UTC) #11
tapted
lgtm - I think patchset 9 is good to land, but you need some OWNERS ...
3 years, 10 months ago (2017-02-03 23:18:59 UTC) #12
Peter Kasting
https://codereview.chromium.org/2660553005/diff/160001/chrome/browser/ui/views/hung_renderer_view.cc File chrome/browser/ui/views/hung_renderer_view.cc (right): https://codereview.chromium.org/2660553005/diff/160001/chrome/browser/ui/views/hung_renderer_view.cc#newcode352 chrome/browser/ui/views/hung_renderer_view.cc:352: return LayoutDelegate::Get()->IsHarmonyMode(); After the previous discussion, I feel like ...
3 years, 10 months ago (2017-02-06 21:44:51 UTC) #13
Peter Kasting
https://codereview.chromium.org/2660553005/diff/160001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (left): https://codereview.chromium.org/2660553005/diff/160001/ui/views/window/dialog_client_view.cc#oldcode86 ui/views/window/dialog_client_view.cc:86: button_row_insets_ = ViewsDelegate::GetInstance()->GetDialogButtonInsets(); On 2017/02/06 21:44:51, Peter Kasting wrote: ...
3 years, 10 months ago (2017-02-07 02:37:15 UTC) #14
Bret
https://codereview.chromium.org/2660553005/diff/160001/chrome/browser/ui/views/hung_renderer_view.cc File chrome/browser/ui/views/hung_renderer_view.cc (right): https://codereview.chromium.org/2660553005/diff/160001/chrome/browser/ui/views/hung_renderer_view.cc#newcode352 chrome/browser/ui/views/hung_renderer_view.cc:352: return LayoutDelegate::Get()->IsHarmonyMode(); On 2017/02/06 21:44:50, Peter Kasting wrote: > ...
3 years, 10 months ago (2017-02-09 00:49:49 UTC) #15
tapted
yay - nice update - still lgtm https://codereview.chromium.org/2660553005/diff/180001/chrome/browser/ui/views/hung_renderer_view_browsertest.cc File chrome/browser/ui/views/hung_renderer_view_browsertest.cc (right): https://codereview.chromium.org/2660553005/diff/180001/chrome/browser/ui/views/hung_renderer_view_browsertest.cc#newcode13 chrome/browser/ui/views/hung_renderer_view_browsertest.cc:13: #include "chrome/browser/ui/views/hung_renderer_view.h" ...
3 years, 10 months ago (2017-02-10 05:37:03 UTC) #16
Bret
Still waiting for review from pkasting@ https://codereview.chromium.org/2660553005/diff/180001/chrome/browser/ui/views/hung_renderer_view_browsertest.cc File chrome/browser/ui/views/hung_renderer_view_browsertest.cc (right): https://codereview.chromium.org/2660553005/diff/180001/chrome/browser/ui/views/hung_renderer_view_browsertest.cc#newcode13 chrome/browser/ui/views/hung_renderer_view_browsertest.cc:13: #include "chrome/browser/ui/views/hung_renderer_view.h" On ...
3 years, 10 months ago (2017-02-11 23:43:16 UTC) #17
Peter Kasting
On 2017/02/11 23:43:16, Bret Sepulveda wrote: > Still waiting for review from pkasting@ I know. ...
3 years, 10 months ago (2017-02-12 07:38:36 UTC) #18
Peter Kasting
The DialogClientView changes are nice, yet scary. Otherwise the main question left is around how ...
3 years, 10 months ago (2017-02-13 23:47:32 UTC) #19
Bret
https://codereview.chromium.org/2660553005/diff/180001/chrome/browser/ui/views/harmony/layout_delegate.h File chrome/browser/ui/views/harmony/layout_delegate.h (right): https://codereview.chromium.org/2660553005/diff/180001/chrome/browser/ui/views/harmony/layout_delegate.h#newcode20 chrome/browser/ui/views/harmony/layout_delegate.h:20: // pre-Harmony, defies easy explanation. On 2017/02/13 23:47:31, Peter ...
3 years, 10 months ago (2017-02-16 00:25:02 UTC) #20
Peter Kasting
LGTM https://codereview.chromium.org/2660553005/diff/220001/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc File chrome/browser/ui/views/harmony/harmony_layout_delegate.cc (right): https://codereview.chromium.org/2660553005/diff/220001/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc#newcode25 chrome/browser/ui/views/harmony/harmony_layout_delegate.cc:25: // Minimum label size plus padding. Maybe we ...
3 years, 10 months ago (2017-02-16 01:14:47 UTC) #21
Bret
https://codereview.chromium.org/2660553005/diff/220001/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc File chrome/browser/ui/views/harmony/harmony_layout_delegate.cc (right): https://codereview.chromium.org/2660553005/diff/220001/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc#newcode25 chrome/browser/ui/views/harmony/harmony_layout_delegate.cc:25: // Minimum label size plus padding. On 2017/02/16 01:14:47, ...
3 years, 10 months ago (2017-02-16 01:31:04 UTC) #22
tapted
(in case you're waiting for me) still lgtm - I did a quick scan
3 years, 10 months ago (2017-02-16 03:52:19 UTC) #23
Peter Kasting
https://codereview.chromium.org/2660553005/diff/220001/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2660553005/diff/220001/ui/views/window/dialog_client_view.cc#newcode337 ui/views/window/dialog_client_view.cc:337: // this can be deleted when harmony is always ...
3 years, 10 months ago (2017-02-16 06:22:31 UTC) #24
tapted
Just a heads-up - I've started basing CLs off this to avoid merge conflicts later ...
3 years, 10 months ago (2017-02-16 11:12:35 UTC) #25
Bret
Fixing the test required some changes to DialogClientView::Layout, PTAL Adding sky@ for ui/views OWNERS https://codereview.chromium.org/2660553005/diff/240001/ui/views/window/dialog_client_view.cc ...
3 years, 10 months ago (2017-02-17 02:33:15 UTC) #27
Peter Kasting
LGTM If you see cleanup that makes sense to do separately, I definitely suggest filing ...
3 years, 10 months ago (2017-02-17 02:37:24 UTC) #28
tapted
lgtm2 % CL description: the sentence about --single-process can be dropped, since that stuff has ...
3 years, 10 months ago (2017-02-17 03:52:03 UTC) #29
sky
LGTM
3 years, 10 months ago (2017-02-17 17:27:33 UTC) #30
Bret
On 2017/02/17 03:52:03, tapted wrote: > lgtm2 % CL description: the sentence about --single-process can ...
3 years, 10 months ago (2017-02-17 19:59:01 UTC) #32
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/2660553005/260001
3 years, 10 months ago (2017-02-17 20:00:45 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/284653)
3 years, 10 months ago (2017-02-17 20:36:45 UTC) #37
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/2660553005/260001
3 years, 10 months ago (2017-02-17 21:22:21 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-17 23:26:33 UTC) #41
Bret
On 2017/02/17 23:26:33, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 10 months ago (2017-02-18 00:49:09 UTC) #42
tapted
On 2017/02/18 00:49:09, Bret Sepulveda wrote: > On 2017/02/17 23:26:33, commit-bot: I haz the power ...
3 years, 10 months ago (2017-02-18 04:29:07 UTC) #43
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/2660553005/280001
3 years, 10 months ago (2017-02-18 21:37:02 UTC) #46
commit-bot: I haz the power
Committed patchset #15 (id:280001) as https://chromium.googlesource.com/chromium/src/+/b621d8cec36bec73ef3eacddbcd7c998aee80cae
3 years, 10 months ago (2017-02-18 22:40:39 UTC) #49
pcc1
Hi Bret, I believe that this change caused a test failure on one of our ...
3 years, 10 months ago (2017-02-22 00:26:58 UTC) #50
Bret
3 years, 10 months ago (2017-02-22 00:50:03 UTC) #51
Message was sent while issue was closed.
On 2017/02/22 00:26:58, pcc1 wrote:
> Hi Bret,
> 
> I believe that this change caused a test failure on one of our bots:
>
https://build.chromium.org/p/chromium.fyi/builders/CFI%20Linux/builds/7533/st...
> 
> Still trying to reproduce locally, but do you have any idea what the problem
> might be?
> 
> Peter

I haven't investigated the failure, but I'm disabling the test here:
https://codereview.chromium.org/2710633003 Sorry for the trouble!

Powered by Google App Engine
This is Rietveld 408576698