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

Unified Diff: content/browser/frame_host/debug_urls.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 | « chrome/common/url_constants.cc ('k') | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/debug_urls.cc
diff --git a/content/browser/frame_host/debug_urls.cc b/content/browser/frame_host/debug_urls.cc
index dd86fca4c47aed6d5979ccc0f3625a8afeef5007..22e0a15c80d0a703a4c842b76a8bd0af799ac06a 100644
--- a/content/browser/frame_host/debug_urls.cc
+++ b/content/browser/frame_host/debug_urls.cc
@@ -180,6 +180,15 @@ bool HandleDebugURL(const GURL& url, ui::PageTransition transition) {
return true;
}
+#if defined(OS_ANDROID)
+ if (url == kChromeUIGpuJavaCrashURL) {
+ GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
+ if (shim)
+ shim->SimulateJavaCrash();
+ return true;
+ }
+#endif
+
if (url == kChromeUIGpuHangURL) {
GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
if (shim)
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698