| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/frame_host/debug_urls.h" | 5 #include "content/browser/frame_host/debug_urls.h" |
| 6 | 6 |
| 7 #if defined(SYZYASAN) | 7 #if defined(SYZYASAN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 return true; | 173 return true; |
| 174 } | 174 } |
| 175 | 175 |
| 176 if (url == kChromeUIGpuCrashURL) { | 176 if (url == kChromeUIGpuCrashURL) { |
| 177 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); | 177 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); |
| 178 if (shim) | 178 if (shim) |
| 179 shim->SimulateCrash(); | 179 shim->SimulateCrash(); |
| 180 return true; | 180 return true; |
| 181 } | 181 } |
| 182 | 182 |
| 183 #if defined(OS_ANDROID) |
| 184 if (url == kChromeUIGpuJavaCrashURL) { |
| 185 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); |
| 186 if (shim) |
| 187 shim->SimulateJavaCrash(); |
| 188 return true; |
| 189 } |
| 190 #endif |
| 191 |
| 183 if (url == kChromeUIGpuHangURL) { | 192 if (url == kChromeUIGpuHangURL) { |
| 184 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); | 193 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); |
| 185 if (shim) | 194 if (shim) |
| 186 shim->SimulateHang(); | 195 shim->SimulateHang(); |
| 187 return true; | 196 return true; |
| 188 } | 197 } |
| 189 | 198 |
| 190 if (url == kChromeUIPpapiFlashCrashURL || url == kChromeUIPpapiFlashHangURL) { | 199 if (url == kChromeUIPpapiFlashCrashURL || url == kChromeUIPpapiFlashHangURL) { |
| 191 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, | 200 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
| 192 base::Bind(&HandlePpapiFlashDebugURL, url)); | 201 base::Bind(&HandlePpapiFlashDebugURL, url)); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 206 return url == kChromeUIBadCastCrashURL || | 215 return url == kChromeUIBadCastCrashURL || |
| 207 url == kChromeUICrashURL || | 216 url == kChromeUICrashURL || |
| 208 url == kChromeUIDumpURL || | 217 url == kChromeUIDumpURL || |
| 209 url == kChromeUIKillURL || | 218 url == kChromeUIKillURL || |
| 210 url == kChromeUIHangURL || | 219 url == kChromeUIHangURL || |
| 211 url == kChromeUIShorthangURL || | 220 url == kChromeUIShorthangURL || |
| 212 url == kChromeUIMemoryExhaustURL; | 221 url == kChromeUIMemoryExhaustURL; |
| 213 } | 222 } |
| 214 | 223 |
| 215 } // namespace content | 224 } // namespace content |
| OLD | NEW |