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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2664373002: android: Add debug url to throw uncaught exception (Closed)
Patch Set: fix missing os_android Created 3 years, 11 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
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index f392f2766a19867651855f2f04792b74e076e6a3..803b06a43ccfb10e45e3cd06eb84b3cc76f6dd59 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -51,6 +51,7 @@
#endif
#if defined(OS_ANDROID)
+#include "base/android/throw_uncaught_exception.h"
#include "media/base/android/media_client_android.h"
#include "media/gpu/avda_codec_allocator.h"
#endif
@@ -252,6 +253,9 @@ bool GpuChildThread::OnControlMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(GpuMsg_Clean, OnClean)
IPC_MESSAGE_HANDLER(GpuMsg_Crash, OnCrash)
IPC_MESSAGE_HANDLER(GpuMsg_Hang, OnHang)
+#if defined(OS_ANDROID)
+ IPC_MESSAGE_HANDLER(GpuMsg_JavaCrash, OnJavaCrash)
+#endif
IPC_MESSAGE_HANDLER(GpuMsg_GpuSwitched, OnGpuSwitched)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -446,6 +450,12 @@ void GpuChildThread::OnHang() {
}
}
+#if defined(OS_ANDROID)
+void GpuChildThread::OnJavaCrash() {
+ base::android::ThrowUncaughtException();
+}
+#endif
+
void GpuChildThread::OnGpuSwitched() {
DVLOG(1) << "GPU: GPU has switched";
// Notify observers in the GPU process.
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698