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

Unified Diff: chrome/browser/chromeos/login/lock/webui_screen_locker.cc

Issue 2768543002: chromeos: Add PowerManagerClient::GetSwitchStates(). (Closed)
Patch Set: document that callbacks aren't run on error Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/lock/webui_screen_locker.h ('k') | chromeos/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/lock/webui_screen_locker.cc
diff --git a/chrome/browser/chromeos/login/lock/webui_screen_locker.cc b/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
index 4e4ace662a10e1483231a10f7acb6647f891468a..01805033ce1beb528371b1fe5169279fb705ddc8 100644
--- a/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
+++ b/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
@@ -381,9 +381,9 @@ void WebUIScreenLocker::OnWidgetDestroying(views::Widget* widget) {
////////////////////////////////////////////////////////////////////////////////
// PowerManagerClient::Observer:
-void WebUIScreenLocker::LidEventReceived(bool open,
+void WebUIScreenLocker::LidEventReceived(PowerManagerClient::LidState state,
const base::TimeTicks& time) {
- if (open) {
+ if (state == PowerManagerClient::LidState::OPEN) {
content::BrowserThread::PostTask(
content::BrowserThread::UI, FROM_HERE,
base::Bind(&WebUIScreenLocker::FocusUserPod,
« no previous file with comments | « chrome/browser/chromeos/login/lock/webui_screen_locker.h ('k') | chromeos/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698