| Index: base/android/java/src/org/chromium/base/ApplicationStatus.java
|
| diff --git a/base/android/java/src/org/chromium/base/ApplicationStatus.java b/base/android/java/src/org/chromium/base/ApplicationStatus.java
|
| index 9f775958491811c93237391ad9c55964dd29d2c9..8f3428b8aff091a7be56521a3a24615b35da7598 100644
|
| --- a/base/android/java/src/org/chromium/base/ApplicationStatus.java
|
| +++ b/base/android/java/src/org/chromium/base/ApplicationStatus.java
|
| @@ -331,6 +331,15 @@ public class ApplicationStatus {
|
| }
|
|
|
| /**
|
| + * Checks whether Chrome is running in the foreground.
|
| + * @return Whether any Activity under this Application is running.
|
| + */
|
| + @CalledByNative
|
| + public static boolean hasRunningActivities() {
|
| + return getStateForApplication() == ApplicationState.HAS_RUNNING_ACTIVITIES;
|
| + }
|
| +
|
| + /**
|
| * Checks to see if there are any active Activity instances being watched by ApplicationStatus.
|
| * @return True if all Activities have been destroyed.
|
| */
|
|
|