diff options
author | sidor@chromium.org <sidor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-10 07:54:50 +0000 |
---|---|---|
committer | sidor@chromium.org <sidor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-10 07:54:50 +0000 |
commit | 80722b2de9e24617450c1727b4aa619ca5f8709d (patch) | |
tree | 824cf99f86da8f5c8de98cee1f0139be84d314bd /chrome/browser/idle.h | |
parent | 49a9c05b2eafc9b4ed09f9e7b54c8a3a1a269afe (diff) | |
download | chromium_src-80722b2de9e24617450c1727b4aa619ca5f8709d.zip chromium_src-80722b2de9e24617450c1727b4aa619ca5f8709d.tar.gz chromium_src-80722b2de9e24617450c1727b4aa619ca5f8709d.tar.bz2 |
Fixing the bug, that caused UI to hang after unsupported device was inserted.
In the idle.h new synchronous method was added - IsWorkstationInLockedState.
BUG=chromium-os:20261
TEST=None
Review URL: http://codereview.chromium.org/7864022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100582 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/idle.h')
-rw-r--r-- | chrome/browser/idle.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/idle.h b/chrome/browser/idle.h index 05b5066..dfda8d7 100644 --- a/chrome/browser/idle.h +++ b/chrome/browser/idle.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -27,7 +27,7 @@ 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); +// Checks synchronously if Idle state is IDLE_STATE_LOCKED. +bool CheckIdleStateIsLocked(); #endif // CHROME_BROWSER_IDLE_H_ |