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

Issue 2275413002: Make the MediaRouterDialogDelegate set initial dialog size in OSX (Closed)

Created:
4 years, 3 months ago by takumif
Modified:
4 years, 3 months ago
CC:
chromium-reviews, nasko+codewatch_chromium.org, tfarina, jam, darin-cc_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the MediaRouterDialogDelegate set initial dialog size in OSX This CL fixes the bug in which the media router dialog would sometimes fail to show on OSX. We make MediaRouterDialogDelegate::GetDialogSize() set the dialog size the first time it's called by WebDialogConstrainedWindowSheet::updateSheetPosition(), so that the custom window is not initialized with size 0. BUG=633403 Committed: https://crrev.com/3613d6709e4b55f87c6855f71708b2c91b5308c0 Cr-Commit-Position: refs/heads/master@{#418720}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address Jennifer's comment #

Total comments: 4

Patch Set 3 : Use kWindowSizeDeterminedLater #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.mm View 1 2 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
takumif
thakis@chromium.org: Please review changes in constrained_window_web_dialog_sheet.mm apacible@chromium.org: Please review changes in both the files Thank ...
4 years, 3 months ago (2016-08-29 22:14:43 UTC) #9
apacible
https://codereview.chromium.org/2275413002/diff/80001/chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc File chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc (right): https://codereview.chromium.org/2275413002/diff/80001/chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc#newcode85 chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc:85: if (size->IsEmpty()) I would prefer handling everything on the ...
4 years, 3 months ago (2016-08-31 18:19:12 UTC) #10
takumif
https://codereview.chromium.org/2275413002/diff/80001/chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc File chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc (right): https://codereview.chromium.org/2275413002/diff/80001/chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc#newcode85 chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc:85: if (size->IsEmpty()) On 2016/08/31 18:19:12, apacible wrote: > I ...
4 years, 3 months ago (2016-08-31 22:44:30 UTC) #11
apacible
Any thoughts on why this is only an issue in M54? In the bug, you ...
4 years, 3 months ago (2016-09-06 17:24:54 UTC) #12
takumif
I'm not sure why it didn't repro on M52/53. Also, it reproed on M54/OSX 10.10 ...
4 years, 3 months ago (2016-09-06 19:01:37 UTC) #13
takumif
A friendly ping -- please take a look, thank you!
4 years, 3 months ago (2016-09-08 17:56:30 UTC) #14
apacible
lgtm (Oops, thought I sent that with my last comments!)
4 years, 3 months ago (2016-09-08 18:49:05 UTC) #15
takumif
groby@, please take a look at constrained_window_web_dialog_sheet.mm. Thank you!
4 years, 3 months ago (2016-09-12 21:33:28 UTC) #21
groby-ooo-7-16
I think there's a much simpler fix. Please LMK if that works for you. https://codereview.chromium.org/2275413002/diff/100001/chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.mm ...
4 years, 3 months ago (2016-09-14 19:30:03 UTC) #22
takumif
Thank you for your advice, Rachel. I've made changes accordingly. Please take a look, thanks! ...
4 years, 3 months ago (2016-09-14 21:46:44 UTC) #24
groby-ooo-7-16
LGTM
4 years, 3 months ago (2016-09-14 22:17:23 UTC) #25
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/2275413002/140001
4 years, 3 months ago (2016-09-15 00:03:12 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:140001)
4 years, 3 months ago (2016-09-15 00:14:45 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 00:17:27 UTC) #36
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3613d6709e4b55f87c6855f71708b2c91b5308c0
Cr-Commit-Position: refs/heads/master@{#418720}

Powered by Google App Engine
This is Rietveld 408576698