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

Unified Diff: chrome/browser/idle.h

Issue 7864022: Fixing the bug, that caused UI to hang after unsupported device was inserted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small fixes Created 9 years, 3 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 | « no previous file | chrome/browser/idle.cc » ('j') | chrome/browser/idle_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/idle.h
diff --git a/chrome/browser/idle.h b/chrome/browser/idle.h
index 05b5066351400cdf28dcbb771294f9317c44953e..f573948a768c3adf4dbd63bc3c8b8f5dd06b88f7 100644
--- a/chrome/browser/idle.h
+++ b/chrome/browser/idle.h
@@ -27,7 +27,8 @@ typedef base::Callback<void(IdleState)> IdleCallback;
// Calculate the Idle state and notify the callback.
void CalculateIdleState(unsigned int idle_threshold, IdleCallback notify);
-// Calculate the Idle state synchronously and return the state.
-IdleState CalculateIdleStateSync(unsigned int idle_threshold);
-
+// returns true if workstation is in locked state. It's a synchronous equivalent
+// of check if CalculateIdleState(0, ...) callback doesn't return
tonibarzic 2011/09/10 00:37:40 Checks if Idle state is IDLE_STATE_LOCKED.
sidor 2011/09/10 02:18:28 Done.
+// IDLE_STATE_LOCKED.
+bool IsWorkstationInLockedState();
tonibarzic 2011/09/10 00:37:40 I find this name to similar to IsWorkstationLocked
sidor 2011/09/10 02:18:28 Done.
#endif // CHROME_BROWSER_IDLE_H_
« no previous file with comments | « no previous file | chrome/browser/idle.cc » ('j') | chrome/browser/idle_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698