blob: f449108a50701fb7af237b2b9cb7623f1b45847a [file] [log] [blame]
// 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.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
/**
* JNI wrapper class for accessing CastCrashHandler.
*/
@JNINamespace("chromecast")
public final class CastCrashHandler {
private static final String TAG = "cr_CastCrashHandler";
@CalledByNative
public static void uploadOnce(String crashDumpPath, String crashReportsPath, String uuid,
String applicationFeedback, boolean uploadCrashToStaging) {
CastCrashUploader uploader = CastCrashUploaderFactory.createCastCrashUploader(
crashDumpPath, crashReportsPath, uuid, applicationFeedback, uploadCrashToStaging);
uploader.uploadOnce();
}
@CalledByNative
public static void removeCrashDumps(String crashDumpPath, String crashReportsPath, String uuid,
String applicationFeedback, boolean uploadCrashToStaging) {
CastCrashUploader uploader = CastCrashUploaderFactory.createCastCrashUploader(
crashDumpPath, crashReportsPath, uuid, applicationFeedback, uploadCrashToStaging);
uploader.removeCrashDumps();
}
}