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

Side by Side 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, 10 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« 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