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

Unified Diff: chrome/browser/idle_android.cc

Issue 9347052: Add minimal CalculateIdleState implementation for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 8 years, 10 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/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/idle_android.cc
diff --git a/chrome/browser/idle_android.cc b/chrome/browser/idle_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7cf19695f2c12675b27cdb9c5f244deb57d6483f
--- /dev/null
+++ b/chrome/browser/idle_android.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2012 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 "base/logging.h"
+#include "chrome/browser/idle.h"
+
+// This currently just reports that we're active on Android. Further
+// revisions could check device state to see if we're active but on memory
+// constrained devices such as Android we'll often get completely killed if
+// Chrome isn't active anyway.
+// TODO(yfriedman): Tracking in bug: 114481
+void CalculateIdleState(unsigned int idle_threshold, IdleCallback notify) {
+ NOTIMPLEMENTED();
+ notify.Run(IDLE_STATE_ACTIVE);
+}
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698