| 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();
|
| + }
|
| +}
|
|
|