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

Issue 1929203002: mash: Fix crash when clicking on the shelf overflow icon (Closed)

Created:
4 years, 7 months ago by James Cook
Modified:
4 years, 7 months ago
Reviewers:
msw, 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

mash: Fix crash when clicking on the shelf overflow icon Under mus/mash, each widget has its own RootWindow. Only the RootWindow for the display has a RootWindowController. OverflowBubble was attempting to look up the display's RootWindowController from the shelf's widget, which doesn't have one. There is a separate problem that prevents the overflow bubble from showing (it immediately closes due to a focus/activation issue) but with this CL at least we don't crash on click. We'll need to audit other callers of RootWindowController::ForWindow() to ensure they are safe; I'll file a bug for that. BUG=595851 TEST=Run mash, launch some apps, resize window to get overflow icon to show, click icon, no crash. Committed: https://crrev.com/2a5ffa2195e262691da5d7bab4ac1364622cfcde Cr-Commit-Position: refs/heads/master@{#390690}

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comments #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -20 lines) Patch
M ash/root_window_controller.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shelf/overflow_bubble.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M ash/system/tray/tray_background_view.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 1 2 2 chunks +11 lines, -12 lines 0 comments Download
M ash/system/tray/tray_bubble_wrapper.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
James Cook
msw, please take a look
4 years, 7 months ago (2016-04-28 23:40:24 UTC) #2
msw
lgtm with nit and q https://codereview.chromium.org/1929203002/diff/1/ash/root_window_controller.h File ash/root_window_controller.h (right): https://codereview.chromium.org/1929203002/diff/1/ash/root_window_controller.h#newcode82 ash/root_window_controller.h:82: // has a RootWindowController. ...
4 years, 7 months ago (2016-04-28 23:57:36 UTC) #3
James Cook
oshima, can I get OWNERS for //ash ? https://codereview.chromium.org/1929203002/diff/1/ash/root_window_controller.h File ash/root_window_controller.h (right): https://codereview.chromium.org/1929203002/diff/1/ash/root_window_controller.h#newcode82 ash/root_window_controller.h:82: // ...
4 years, 7 months ago (2016-04-29 16:17:40 UTC) #5
oshima
lgtm
4 years, 7 months ago (2016-04-29 16:58:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929203002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929203002/40001
4 years, 7 months ago (2016-04-29 17:28:43 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-04-29 17:44:15 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:26:57 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2a5ffa2195e262691da5d7bab4ac1364622cfcde
Cr-Commit-Position: refs/heads/master@{#390690}

Powered by Google App Engine
This is Rietveld 408576698