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

Issue 1916913007: mus/ash: WmRootWindowController can be null in mus. (Closed)

Created:
4 years, 7 months ago by sadrul
Modified:
4 years, 7 months ago
Reviewers:
sky
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/ash: WmRootWindowController can be null in mus. ash_sysui ideally wouldn't need to create the ShelfLayoutManager, but it's too deeply ingrained to take out right now. When running in ash_sysui, the shelf widget's 'root window' is not one of the root-windows ash::Shell instance knows about, so it doesn't have a WmRootWindowController. So check for its existence before adding an observer to it. BUG=603369 R=sky@chromium.org Committed: https://crrev.com/fa1ae588e0fcda6bda31557a32b4848d8018530a Cr-Commit-Position: refs/heads/master@{#390541}

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -9 lines) Patch
M ash/shelf/shelf_layout_manager.cc View 1 2 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
sky
https://codereview.chromium.org/1916913007/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/1916913007/diff/1/ash/shelf/shelf_layout_manager.cc#newcode242 ash/shelf/shelf_layout_manager.cc:242: DCHECK(Shell::GetInstance()->in_mus()); What about wrapping this whole thing in !Shell::GetInstance()->in_mus()?
4 years, 7 months ago (2016-04-28 15:23:12 UTC) #1
sadrul
https://codereview.chromium.org/1916913007/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/1916913007/diff/1/ash/shelf/shelf_layout_manager.cc#newcode242 ash/shelf/shelf_layout_manager.cc:242: DCHECK(Shell::GetInstance()->in_mus()); On 2016/04/28 15:23:12, sky wrote: > What about ...
4 years, 7 months ago (2016-04-28 15:28:51 UTC) #2
sky
LGTM
4 years, 7 months ago (2016-04-28 23:53:35 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1916913007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1916913007/20001
4 years, 7 months ago (2016-04-28 23:54:03 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-04-29 00:03:19 UTC) #6
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:22:54 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fa1ae588e0fcda6bda31557a32b4848d8018530a
Cr-Commit-Position: refs/heads/master@{#390541}

Powered by Google App Engine
This is Rietveld 408576698