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

Issue 1149833006: Stop the OverviewButton from appearing on the Add-User screen (Closed)

Created:
5 years, 7 months ago by jonross
Modified:
5 years, 6 months ago
Reviewers:
flackr, sadrul
CC:
chromium-reviews, tdanderson+overview_chromium.org, kalyank, sadrul, tdanderson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop the OverviewButton from appearing on the Add-User screen OverviewButtonTray was showing up on the Add-User screen. It should only be available when a user is logged in and in the active state. Update OverviewButtonTray to observe SessionState changes to determine visibility. Update WindowSelectorController to not allow overview mode while on the add-user screen. TEST=OverviewButtonTrayTest.VisibilityChangesForLoginStatus BUG=488464, 482591 Committed: https://crrev.com/cd872eea1f6a0571d94796046bf690274254db2d Cr-Commit-Position: refs/heads/master@{#332872}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Decouple Overview Visibility from WindowSelector activation #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : Include Test for 482591 #

Total comments: 6

Patch Set 5 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -4 lines) Patch
M ash/system/overview/overview_button_tray.h View 1 3 chunks +5 lines, -1 line 0 comments Download
M ash/system/overview/overview_button_tray.cc View 1 2 3 4 4 chunks +25 lines, -3 lines 3 comments Download
M ash/system/overview/overview_button_tray_unittest.cc View 1 2 3 4 5 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
jonross
Hey Rob, Could you PTAL and provide owner review for ash/wm? Thanks, Jon
5 years, 7 months ago (2015-05-26 20:56:13 UTC) #2
flackr
https://codereview.chromium.org/1149833006/diff/1/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/1/ash/system/overview/overview_button_tray.cc#newcode71 ash/system/overview/overview_button_tray.cc:71: UpdateIconVisibility(); I think this is getting brittle, the logic ...
5 years, 6 months ago (2015-05-28 15:20:38 UTC) #3
jonross
+tdanderson@ FYI as you are working on a related patch. https://codereview.chromium.org/1149833006/diff/1/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/1/ash/system/overview/overview_button_tray.cc#newcode71 ...
5 years, 6 months ago (2015-06-01 17:00:37 UTC) #4
flackr
https://codereview.chromium.org/1149833006/diff/20001/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/20001/ash/system/overview/overview_button_tray.cc#newcode58 ash/system/overview/overview_button_tray.cc:58: SetVisible(false); What guarantee is there that the visibility won't ...
5 years, 6 months ago (2015-06-01 17:05:32 UTC) #5
jonross
https://codereview.chromium.org/1149833006/diff/20001/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/20001/ash/system/overview/overview_button_tray.cc#newcode58 ash/system/overview/overview_button_tray.cc:58: SetVisible(false); On 2015/06/01 17:05:32, flackr wrote: > What guarantee ...
5 years, 6 months ago (2015-06-01 17:20:37 UTC) #6
flackr
In the original change you had also added a check for SessionStateDelegate::SESSION_STATE_ACTIVE to CanSelect. Do ...
5 years, 6 months ago (2015-06-01 17:50:01 UTC) #7
jonross
On 2015/06/01 17:50:01, flackr wrote: > In the original change you had also added a ...
5 years, 6 months ago (2015-06-01 18:10:24 UTC) #8
flackr
lgtm with nits https://codereview.chromium.org/1149833006/diff/60001/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/60001/ash/system/overview/overview_button_tray.cc#newcode138 ash/system/overview/overview_button_tray.cc:138: user::LOGGED_IN_KIOSK_APP); nit: Lots of Shell::GetInstance()'s here, ...
5 years, 6 months ago (2015-06-01 18:16:33 UTC) #9
flackr
https://codereview.chromium.org/1149833006/diff/60001/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/60001/ash/system/overview/overview_button_tray.cc#newcode127 ash/system/overview/overview_button_tray.cc:127: SetVisible( nit: You should add a comment to the ...
5 years, 6 months ago (2015-06-01 18:18:55 UTC) #10
jonross
https://codereview.chromium.org/1149833006/diff/60001/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/60001/ash/system/overview/overview_button_tray.cc#newcode127 ash/system/overview/overview_button_tray.cc:127: SetVisible( On 2015/06/01 18:18:55, flackr wrote: > nit: You ...
5 years, 6 months ago (2015-06-01 18:27:43 UTC) #11
jonross
Hey Sadrul, Could you provide an owners review of this change? Thanks, Jon
5 years, 6 months ago (2015-06-01 18:28:10 UTC) #13
sadrul
lgtm https://codereview.chromium.org/1149833006/diff/80001/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/80001/ash/system/overview/overview_button_tray.cc#newcode140 ash/system/overview/overview_button_tray.cc:140: SessionStateDelegate::SESSION_STATE_ACTIVE && This ... is a bit complex. ...
5 years, 6 months ago (2015-06-03 19:08:36 UTC) #14
jonross
https://codereview.chromium.org/1149833006/diff/80001/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/80001/ash/system/overview/overview_button_tray.cc#newcode140 ash/system/overview/overview_button_tray.cc:140: SessionStateDelegate::SESSION_STATE_ACTIVE && On 2015/06/03 19:08:36, sadrul wrote: > This ...
5 years, 6 months ago (2015-06-04 17:38:23 UTC) #15
jonross
https://codereview.chromium.org/1149833006/diff/80001/ash/system/overview/overview_button_tray.cc File ash/system/overview/overview_button_tray.cc (right): https://codereview.chromium.org/1149833006/diff/80001/ash/system/overview/overview_button_tray.cc#newcode140 ash/system/overview/overview_button_tray.cc:140: SessionStateDelegate::SESSION_STATE_ACTIVE && On 2015/06/04 17:38:22, jonross wrote: > On ...
5 years, 6 months ago (2015-06-04 17:55:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149833006/80001
5 years, 6 months ago (2015-06-04 17:57:05 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-04 19:20:42 UTC) #20
commit-bot: I haz the power
5 years, 6 months ago (2015-06-04 19:21:34 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cd872eea1f6a0571d94796046bf690274254db2d
Cr-Commit-Position: refs/heads/master@{#332872}

Powered by Google App Engine
This is Rietveld 408576698