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

Unified Diff: base/android/application_status_listener.cc

Issue 1473753002: Re-land "Add stats to distinguish android renderer crashes." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix per review. Created 5 years 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
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) {
« no previous file with comments | « base/android/application_status_listener.h ('k') | base/android/java/src/org/chromium/base/ApplicationStatus.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698