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

Issue 11737015: "Lock on idle and suspend": Log out instead if session cannot be locked (Closed)

Created:
7 years, 11 months ago by bartfab (slow)
Modified:
7 years, 11 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

"Lock on idle and suspend": Log out instead if session cannot be locked This Cl ensures that if the current user's session cannot be locked, "lock on idle suspend" triggers a logout instead. BUG=168151 TEST=Manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175534

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M chrome/browser/chromeos/login/screen_locker.cc View 1 chunk +7 lines, -5 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
bartfab (slow)
Hi Nikita, Could you please review?
7 years, 11 months ago (2013-01-03 12:47:44 UTC) #1
bartfab (slow)
Hi Ivan, As discussed, could you take a look?
7 years, 11 months ago (2013-01-08 14:00:54 UTC) #2
Ivan Korotkov
lgtm
7 years, 11 months ago (2013-01-08 14:03:27 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11737015/1
7 years, 11 months ago (2013-01-08 14:04:29 UTC) #4
commit-bot: I haz the power
Change committed as 175534
7 years, 11 months ago (2013-01-08 15:58:26 UTC) #5
Nikita (slow)
https://chromiumcodereview.appspot.com/11737015/diff/1/chrome/browser/chromeos/login/screen_locker.cc File chrome/browser/chromeos/login/screen_locker.cc (right): https://chromiumcodereview.appspot.com/11737015/diff/1/chrome/browser/chromeos/login/screen_locker.cc#newcode99 chrome/browser/chromeos/login/screen_locker.cc:99: chromeos::UserManager::Get()->CanCurrentUserLock()) { I'm not sure that making logout in ...
7 years, 11 months ago (2013-01-09 12:55:35 UTC) #6
bartfab (slow)
7 years, 11 months ago (2013-01-10 11:12:01 UTC) #7
Message was sent while issue was closed.
This CL is meant a stop-gap until the powerd rework is done (currently ongoing
and scheduled for M26). Once that lands, there will be fine-grained control over
idle/sleep/lock/power behavior and we will be able to configure Public Accounts
so that no attempt to lock is ever made.

In the meantime, we need a way to reinterpret "lock -> logout" for Public
Accounts. As you say, this does not make sense for e.g. Guest but as you also
mentioned, this code path should never be hit for anything but Public Accounts.

Long story short, we can modify the check from CanCurrentUserLock() to
IsLoggedInAsPublicAccount() for now. And in the near future, we will just remove
this code altogether.

On 2013/01/09 12:55:35, Nikita Kostylev wrote:
>
https://chromiumcodereview.appspot.com/11737015/diff/1/chrome/browser/chromeo...
> File chrome/browser/chromeos/login/screen_locker.cc (right):
> 
>
https://chromiumcodereview.appspot.com/11737015/diff/1/chrome/browser/chromeo...
> chrome/browser/chromeos/login/screen_locker.cc:99:
> chromeos::UserManager::Get()->CanCurrentUserLock()) {
> I'm not sure that making logout in this case makes sense for all such cases.
> 
> It might be the case for public accounts but not for Guest session.
> 
> For Guest session we make sure that we never get here.
> But even if we got here it should be a nop not a logout.

Powered by Google App Engine
This is Rietveld 408576698