views based lockscreen is shown in mash config on desktop |
||||
Issue descriptionI just run mash on the desktop, and click on the lock button won't start the lock screen. Looking at the code, clicking on the lock button will send request to session manager: https://cs.chromium.org/chromium/src/ash/system/tiles/tiles_default_view.cc?rcl=8d8f44b58664f8e29248bfe502b0ae1503a690c4&l=134 On desktop build, this goes to SessionManagerClientStubImpl here https://cs.chromium.org/chromium/src/chromeos/dbus/session_manager_client.cc?rcl=d4fa4f78601e7ab27b0ce4b1e65e3bfb3187d12e&l=906. ScreenLockObserver is initialized and set itself to the delegate of SessionManagerClient. https://cs.chromium.org/chromium/src/chrome/browser/chromeos/login/lock/screen_locker.cc?rcl=8d8f44b58664f8e29248bfe502b0ae1503a690c4&l=118 In classic Ash, it will eventually call into ScreenLockObserver::LockScreenForStub. In Mash config, SessionManagerClient couldn't find the delegate to lock the screen. +jamescook, is this because DBusThreadManager::Get()->GetSessionManagerClient() returns different clients for chrome and ash process? And the ScreenLockObserver only set itself as delegate to SessionManagerClient in chrome process?
,
Jul 18
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 23
This is still an issue with ToT.
,
Jul 24
I have a CL to play with lock screen on devbox before. https://chromium-review.googlesource.com/c/chromium/src/+/1148654
,
Jul 24
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f650f0752a280fc8b532eab473dc346589d3cb20 commit f650f0752a280fc8b532eab473dc346589d3cb20 Author: Xiyuan Xia <xiyuan@chromium.org> Date: Tue Jul 24 18:14:36 2018 mash: Allow lock on devbox. Lock screen via SessionController so that it also works on dev box. Bug: 745006 Change-Id: Ic269926063741be5d876dcbc9188eee7da12604f Reviewed-on: https://chromium-review.googlesource.com/1148654 Commit-Queue: Xiyuan Xia <xiyuan@chromium.org> Reviewed-by: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#577609} [modify] https://crrev.com/f650f0752a280fc8b532eab473dc346589d3cb20/ash/system/tiles/tiles_default_view.cc [modify] https://crrev.com/f650f0752a280fc8b532eab473dc346589d3cb20/ash/system/unified/unified_system_tray_controller.cc
,
Jul 24
|
||||
►
Sign in to add a comment |
||||
Comment 1 by jamescook@chromium.org
, Jul 17 2017