Descriptionchromeos: Make CheckIdleStateIsLocked() query D-Bus client.
Make the Chrome OS implementation of
CheckIdleStateIsLocked() (used by the chrome.idle API) get
the lock state from chromeos::SessionManagerClient instead
of depending on ash::SessionStateDelegate (which reaches
into chrome/browser/chromeos/login/). This makes it possible
for the idle code to be later moved under ui/base/ instead
of living in chrome/browser/, permitting the chrome.idle API
to be moved from chrome/ to extensions/.
As part of this, make SessionManagerClient cache the
most-recently-received-from-session_manager screen-lock
state. Previously it just passed state updates to its
observers, but the idle functions lack a class that can
register itself as an observer.
BUG=446320
Committed: https://crrev.com/85e90a06749fe630317eb01ca3487d5a78e9c10a
Cr-Commit-Position: refs/heads/master@{#311333}
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix compilation #Patch Set 3 : sigh, MockSessionManagerClient #
Messages
Total messages: 14 (5 generated)
|