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

Unified Diff: chrome/browser/idle.cc

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: style 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 | « chrome/browser/idle.h ('k') | chrome/browser/idle_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/idle.cc
diff --git a/chrome/browser/idle.cc b/chrome/browser/idle.cc
deleted file mode 100644
index 73b5613652dfeb6db55c907899462df0190200fb..0000000000000000000000000000000000000000
--- a/chrome/browser/idle.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// 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.
-
-#include "chrome/browser/idle.h"
-
-#include "base/bind.h"
-#include "base/synchronization/waitable_event.h"
-
-
-
-void IdleStateCallback(IdleState* return_state, base::WaitableEvent* done,
- IdleState state) {
- *return_state = state;
- done->Signal();
-}
-
-IdleState CalculateIdleStateSync(unsigned int idle_threshold) {
- IdleState return_state;
- base::WaitableEvent done(true, false);
- CalculateIdleState(idle_threshold, base::Bind(&IdleStateCallback,
- &return_state, &done));
- done.Wait();
- return return_state;
-}
« no previous file with comments | « chrome/browser/idle.h ('k') | chrome/browser/idle_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698