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

Issue 2000393003: ash: Reorder shutdown of ShelfLayoutManager and StatusAreaWidget (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

ash: Reorder shutdown of ShelfLayoutManager and StatusAreaWidget Status area widget teardown can cause other widgets to close (e.g. bubbles) which can cause synthetic events (e.g. ET_MOUSE_EXITED) to be generated. In a future CL I need to make ShelfLayoutManager::AutoHideEventFilter handle ET_MOUSE_EXITED, so I need to shutdown the ShelfLayoutManager earlier during Shell teardown. BUG=613212 TEST=existing ash_unittests, specifically ShelfLayoutManagerTest.* Committed: https://crrev.com/f17ee247d73f98df954b3809cf0a651c3b8c0011 Cr-Commit-Position: refs/heads/master@{#395987}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : review comments #

Patch Set 4 : add back ShelfLayoutManagerObserver, rename WillDeleteShelf #

Patch Set 5 : rebase onto upstream CL #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -28 lines) Patch
M ash/root_window_controller.cc View 1 chunk +2 lines, -7 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager_observer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_tooltip_manager.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_widget.h View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 4 chunks +13 lines, -4 lines 0 comments Download
M ash/shell.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/aura/wm_shelf_aura.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/aura/wm_shelf_aura.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
James Cook
oshima, please take a look. The shelf teardown code is frighteningly complex, but I think ...
4 years, 7 months ago (2016-05-24 04:32:12 UTC) #2
oshima
https://codereview.chromium.org/2000393003/diff/20001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2000393003/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode266 ash/shelf/shelf_layout_manager.cc:266: in_shutdown_ = true; did you actually need this? resetting/removing ...
4 years, 7 months ago (2016-05-24 20:49:10 UTC) #3
James Cook
oshima, please take another look https://codereview.chromium.org/2000393003/diff/20001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2000393003/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode266 ash/shelf/shelf_layout_manager.cc:266: in_shutdown_ = true; On ...
4 years, 7 months ago (2016-05-24 21:18:14 UTC) #4
James Cook
Actually, please wait on review. I'm seeing browser_tests crashes on the bots, so I may ...
4 years, 7 months ago (2016-05-25 00:42:09 UTC) #5
James Cook
oshima, please take another look. I had to go back to having ShelfWidget be an ...
4 years, 7 months ago (2016-05-25 16:10:40 UTC) #6
oshima
lgtm thank you for trying and looking into this.
4 years, 7 months ago (2016-05-25 19:13:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2000393003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2000393003/100001
4 years, 7 months ago (2016-05-25 19:35:56 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-25 21:22:15 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 21:23:32 UTC) #13
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f17ee247d73f98df954b3809cf0a651c3b8c0011
Cr-Commit-Position: refs/heads/master@{#395987}

Powered by Google App Engine
This is Rietveld 408576698