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

Unified Diff: chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java

Issue 620673003: Chromecast: adds crash handling for Android build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address lei's comments Created 6 years, 2 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
Index: chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java
diff --git a/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java b/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java
new file mode 100644
index 0000000000000000000000000000000000000000..20fed194c8fb16dc50f27d89671729d4b1ebc087
--- /dev/null
+++ b/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java
@@ -0,0 +1,32 @@
+// Copyright 2014 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.
+
+package org.chromium.chromecast.shell;
+
+import org.chromium.base.CalledByNative;
+import org.chromium.base.JNINamespace;
+
+/**
+ * JNI wrapper class for accessing CastCrashHandler.
+ */
+@JNINamespace("chromecast")
+public final class CastCrashHandler {
+
+ @CalledByNative
+ public static void removeCrashDumpsSync(String crashDumpPath, boolean isDebugBuild) {
+ new CastCrashUploader(crashDumpPath, isDebugBuild).removeCrashDumpsSync();
+ }
+
+ @CalledByNative
+ public static void uploadCurrentProcessDumpSync(String crashDumpPath, String logFilePath,
+ boolean isDebugBuild) {
+ new CastCrashUploader(crashDumpPath, isDebugBuild).
+ uploadCurrentProcessDumpSync(logFilePath);
+ }
+
+ @CalledByNative
+ public static void uploadCrashDumpsAsync(String crashDumpPath, boolean isDebugBuild) {
+ new CastCrashUploader(crashDumpPath, isDebugBuild).uploadRecentCrashesAsync();
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698