OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromecast/app/android/crash_handler.h" | 5 #include "chromecast/app/android/crash_handler.h" |
6 | 6 |
7 #include <jni.h> | 7 #include <jni.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "base/android/context_utils.h" |
11 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" |
12 #include "base/android/jni_string.h" | 13 #include "base/android/jni_string.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/logging.h" | 15 #include "base/logging.h" |
15 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
16 #include "breakpad/src/client/linux/handler/exception_handler.h" | 17 #include "breakpad/src/client/linux/handler/exception_handler.h" |
17 #include "breakpad/src/client/linux/handler/minidump_descriptor.h" | 18 #include "breakpad/src/client/linux/handler/minidump_descriptor.h" |
18 #include "chromecast/app/android/cast_crash_reporter_client_android.h" | 19 #include "chromecast/app/android/cast_crash_reporter_client_android.h" |
19 #include "chromecast/base/version.h" | 20 #include "chromecast/base/version.h" |
20 #include "components/crash/content/app/breakpad_linux.h" | 21 #include "components/crash/content/app/breakpad_linux.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 base::android::ScopedJavaLocalRef<jstring> crash_dump_path_java = | 97 base::android::ScopedJavaLocalRef<jstring> crash_dump_path_java = |
97 base::android::ConvertUTF8ToJavaString(env, crash_dump_path_.value()); | 98 base::android::ConvertUTF8ToJavaString(env, crash_dump_path_.value()); |
98 Java_CastCrashHandler_initializeUploader( | 99 Java_CastCrashHandler_initializeUploader( |
99 env, | 100 env, |
100 base::android::GetApplicationContext(), | 101 base::android::GetApplicationContext(), |
101 crash_dump_path_java.obj(), | 102 crash_dump_path_java.obj(), |
102 UploadCrashToStaging()); | 103 UploadCrashToStaging()); |
103 } | 104 } |
104 | 105 |
105 } // namespace chromecast | 106 } // namespace chromecast |
OLD | NEW |