|
|
chromeos: Refactor shelf to create ShelfView earlier in startup
Currently ShelfView is created in the middle of login, after the profile
loads, whereas the ShelfWidget and StatusAreaWidget are created on display
initialization. We also have complex logic around showing and hiding the
shelf based on login state, supervised user creation flows, etc. This makes
it difficult to reason about the state of the shelf.
Instead, always create the ShelfView when the widget is created. The view
stays hidden at login because its window container is hidden. This makes it
easier to reason about ShelfView (it's always there). We also want this
because we want to replace the Web UI "fake shelf" during OOBE and login
with a views-based shelf. It may help with Clusterfuzz crashes we're
seeing due to shelf not being fully initialized during the tests.
This is a refactor and should not cause behavior changes.
BUG= 717559, 674773
TEST=ash_unittests, browser_tests, manually testing login, ChromeVox, and
adding/removing displays
TBR=tsepez@chromium.org for rename
Review-Url: https://codereview.chromium.org/2889673002
Cr-Commit-Position: refs/heads/master@{#472832}
Committed: https://chromium.googlesource.com/chromium/src/+/788b4fcb1909904cda962cac4a637ffecfa90c1a
Total comments: 43
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+209 lines, -260 lines) |
Patch |
 |
M |
ash/public/interfaces/shelf.mojom
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/root_window_controller.h
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ash/root_window_controller.cc
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -22 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_controller.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_controller.cc
|
View
|
1
2
3
|
3 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_layout_manager.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_locking_manager.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_locking_manager.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_locking_manager_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_widget.h
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_widget.cc
|
View
|
1
2
3
4
|
8 chunks |
+21 lines, -40 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_widget_unittest.cc
|
View
|
1
2
3
4
|
5 chunks |
+62 lines, -72 lines |
1 comment
|
Download
|
 |
M |
ash/shelf/wm_shelf.h
|
View
|
1
2
3
4
|
5 chunks |
+6 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/wm_shelf.cc
|
View
|
1
2
3
4
5
|
7 chunks |
+12 lines, -31 lines |
0 comments
|
Download
|
 |
M |
ash/shell.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/shell.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ash/wm/workspace/workspace_layout_manager.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ash/wm/workspace_controller.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/accessibility/accessibility_manager.cc
|
View
|
|
1 chunk |
+2 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/accessibility/chromevox_panel.h
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/accessibility/chromevox_panel.cc
|
View
|
|
2 chunks |
+18 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 36 (26 generated)
|