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

Issue 1975433002: mus: Fix ash::GetRootWindowController for child windows/widgets (Closed)

Created:
4 years, 7 months ago by James Cook
Modified:
4 years, 7 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Fix ash::GetRootWindowController for child windows/widgets Under mus there is one RootWindow per top-level widget, similar to desktop aura. This means we can't just use the aura::Window's root to find the RootWindowController -- sometimes it will be null. Instead we need to find the display's root window's RootWindowController. This has been a cause of crashes under mus. I looked into refactoring the callers of GetRootWindowController(), but there are ~100 places in the code that call into it, either directly or indirectly, and it seemed better to fix it here. BUG=607755 TEST=RootWindowControolerTest.GetRootWindowController, existing ash_unittests Committed: https://crrev.com/5d74ac0d16386f72e1426107d78aba51c221c230 Cr-Commit-Position: refs/heads/master@{#393337}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -3 lines) Patch
M ash/root_window_controller.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ash/root_window_controller.cc View 1 1 chunk +16 lines, -1 line 0 comments Download
M ash/root_window_controller_unittest.cc View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
James Cook
oshima, please take a look (sky is on vacation). We don't have ash_unittests running yet ...
4 years, 7 months ago (2016-05-11 21:16:59 UTC) #2
oshima
https://codereview.chromium.org/1975433002/diff/1/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/1975433002/diff/1/ash/root_window_controller.cc#newcode1073 ash/root_window_controller.cc:1073: return GetRootWindowSettings(root_window)->controller; This behaves differently if the most of ...
4 years, 7 months ago (2016-05-12 00:40:56 UTC) #3
James Cook
https://codereview.chromium.org/1975433002/diff/1/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/1975433002/diff/1/ash/root_window_controller.cc#newcode1073 ash/root_window_controller.cc:1073: return GetRootWindowSettings(root_window)->controller; On 2016/05/12 00:40:56, oshima wrote: > This ...
4 years, 7 months ago (2016-05-12 16:43:12 UTC) #4
James Cook
oshima, PTAL (Talked offline. The correct behavior depends on which display "owns" the window in ...
4 years, 7 months ago (2016-05-12 18:26:26 UTC) #5
oshima
lgtm
4 years, 7 months ago (2016-05-12 18:40:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1975433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1975433002/20001
4 years, 7 months ago (2016-05-12 19:13:47 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-12 19:57:22 UTC) #9
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 19:58:37 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5d74ac0d16386f72e1426107d78aba51c221c230
Cr-Commit-Position: refs/heads/master@{#393337}

Powered by Google App Engine
This is Rietveld 408576698