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

Issue 909293002: Properly set ShelfAlignment during login (Closed)

Created:
5 years, 10 months ago by jonross
Modified:
5 years, 10 months ago
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

Properly set ShelfAlignment during login ShelfLayoutManager has three methods from which the ShelfAlignment can be applied. For supressed user sessions the shelf is forced to the bottom, however this was only addressing locked screens, and adding new users. When the first login occurs a different state transition takes place, where the SessionState becomes active while the user session is still supressed. ShelfLayoutManager was not applying alignment changes made during this time. Update ShelfLayoutManager to unify the logic for overriding the user set ShelfAlignment. Update this logic to account for having to apply alignment during the initial login. Manual testing was also done for: logging in; locking screen; unlocking screen; adding a new user; switching users. TEST=ShelfLayoutManagerTest.SideAlignmentInteractionWithLockScreen, ShelfLayoutManagerTest.SideAlignmentInteractionWithAddUserScreen, ShelfLayoutManagerTest.SideAlignmentInteractionWithLoginScreen BUG=456199 Committed: https://crrev.com/0a30be1d88f00f510af35144e708bbe797e706d8 Cr-Commit-Position: refs/heads/master@{#316673}

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : Rebase #

Patch Set 6 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -22 lines) Patch
M ash/shelf/shelf_layout_manager.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 3 chunks +26 lines, -13 lines 1 comment Download
M ash/shelf/shelf_layout_manager_unittest.cc View 2 chunks +23 lines, -0 lines 0 comments Download
M ash/test/ash_test_base.h View 1 chunk +1 line, -0 lines 1 comment Download
M ash/test/ash_test_base.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ash/test/test_session_state_delegate.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ash/test/test_session_state_delegate.cc View 1 3 chunks +12 lines, -9 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
jonross
Hi, Could you take a first look at this review? Thanks, Jon
5 years, 10 months ago (2015-02-10 21:47:19 UTC) #2
tdanderson
Hey Jon, the logic looks good but I have made a few suggestions below to ...
5 years, 10 months ago (2015-02-11 20:32:36 UTC) #3
jonross
https://codereview.chromium.org/909293002/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/909293002/diff/1/ash/shelf/shelf_layout_manager.cc#newcode244 ash/shelf/shelf_layout_manager.cc:244: bool ShelfLayoutManager::SetAlignment(ShelfAlignment alignment) { On 2015/02/11 20:32:35, tdanderson wrote: ...
5 years, 10 months ago (2015-02-11 22:17:45 UTC) #4
tdanderson
lgtm with two more nits https://codereview.chromium.org/909293002/diff/20001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/909293002/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode1174 ash/shelf/shelf_layout_manager.cc:1174: return true; nit: seems ...
5 years, 10 months ago (2015-02-11 22:59:53 UTC) #5
jonross
https://codereview.chromium.org/909293002/diff/20001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/909293002/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode1174 ash/shelf/shelf_layout_manager.cc:1174: return true; On 2015/02/11 22:59:53, tdanderson wrote: > nit: ...
5 years, 10 months ago (2015-02-12 15:36:58 UTC) #7
jonross
skuhne@chromium.org: Please review changes in ash/shelf/ This change fixes a layout issue for the shelf ...
5 years, 10 months ago (2015-02-12 15:37:26 UTC) #9
jonross
oshima@chromium.org: Please review changes in ash/test/ I've updated the TestSessionStateDelegate to track the session state, ...
5 years, 10 months ago (2015-02-12 15:38:29 UTC) #11
oshima
https://codereview.chromium.org/909293002/diff/60001/ash/test/test_session_state_delegate.cc File ash/test/test_session_state_delegate.cc (right): https://codereview.chromium.org/909293002/diff/60001/ash/test/test_session_state_delegate.cc#newcode67 ash/test/test_session_state_delegate.cc:67: active_user_session_started_(false), Is it possible to eliminate this flag now?
5 years, 10 months ago (2015-02-12 19:07:58 UTC) #12
Mr4D (OOO till 08-26)
lgtm https://codereview.chromium.org/909293002/diff/60001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/909293002/diff/60001/ash/shelf/shelf_layout_manager.cc#newcode1167 ash/shelf/shelf_layout_manager.cc:1167: if (session_state_delegate->GetSessionState() == Could you add a comment ...
5 years, 10 months ago (2015-02-12 22:04:01 UTC) #13
jonross
https://codereview.chromium.org/909293002/diff/60001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/909293002/diff/60001/ash/shelf/shelf_layout_manager.cc#newcode1167 ash/shelf/shelf_layout_manager.cc:1167: if (session_state_delegate->GetSessionState() == On 2015/02/12 22:04:01, Mr4D wrote: > ...
5 years, 10 months ago (2015-02-12 22:21:06 UTC) #14
jonross
https://codereview.chromium.org/909293002/diff/60001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/909293002/diff/60001/ash/shelf/shelf_layout_manager.cc#newcode1167 ash/shelf/shelf_layout_manager.cc:1167: if (session_state_delegate->GetSessionState() == On 2015/02/12 22:21:06, jonross wrote: > ...
5 years, 10 months ago (2015-02-13 15:29:08 UTC) #16
oshima
https://codereview.chromium.org/909293002/diff/60001/ash/test/test_session_state_delegate.cc File ash/test/test_session_state_delegate.cc (right): https://codereview.chromium.org/909293002/diff/60001/ash/test/test_session_state_delegate.cc#newcode67 ash/test/test_session_state_delegate.cc:67: active_user_session_started_(false), On 2015/02/13 15:29:08, jonross wrote: > On 2015/02/12 ...
5 years, 10 months ago (2015-02-13 21:45:44 UTC) #17
jonross
On 2015/02/13 21:45:44, oshima wrote: > https://codereview.chromium.org/909293002/diff/60001/ash/test/test_session_state_delegate.cc > File ash/test/test_session_state_delegate.cc (right): > > https://codereview.chromium.org/909293002/diff/60001/ash/test/test_session_state_delegate.cc#newcode67 > ...
5 years, 10 months ago (2015-02-17 14:11:29 UTC) #18
jonross
On 2015/02/17 14:11:29, jonross wrote: > On 2015/02/13 21:45:44, oshima wrote: > > > https://codereview.chromium.org/909293002/diff/60001/ash/test/test_session_state_delegate.cc ...
5 years, 10 months ago (2015-02-17 19:17:12 UTC) #19
jonross
Hi James, Would you be able to provide an owners review for ash/test/* while Oshime ...
5 years, 10 months ago (2015-02-17 19:19:03 UTC) #21
James Cook
LGTM but please CC me on the bug to clean up TestSessionStateDelegate. https://codereview.chromium.org/909293002/diff/100001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc ...
5 years, 10 months ago (2015-02-17 20:03:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/909293002/100001
5 years, 10 months ago (2015-02-17 21:19:15 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-17 22:25:32 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-02-17 22:26:24 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0a30be1d88f00f510af35144e708bbe797e706d8
Cr-Commit-Position: refs/heads/master@{#316673}

Powered by Google App Engine
This is Rietveld 408576698