Index: base/android/application_status_listener.cc |
diff --git a/base/android/application_status_listener.cc b/base/android/application_status_listener.cc |
index 5aee781faabcc1cd206ca4fc012000d862ab68f5..a13926868195e4d2b2c1e7a4e0cfa9ed99fcdbe1 100644 |
--- a/base/android/application_status_listener.cc |
+++ b/base/android/application_status_listener.cc |
@@ -65,6 +65,12 @@ void ApplicationStatusListener::NotifyApplicationStateChange( |
state); |
} |
+// static |
+ApplicationState ApplicationStatusListener::GetState() { |
+ return static_cast<ApplicationState>( |
+ Java_ApplicationStatus_getStateForApplication(AttachCurrentThread())); |
+} |
+ |
static void OnApplicationStateChange(JNIEnv* env, |
const JavaParamRef<jclass>& clazz, |
jint new_state) { |