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

Unified Diff: content/browser/frame_host/debug_urls.cc

Issue 2723363002: gpu: Replace GpuMsg_Finalize ipc with equivalent mojom api (Closed)
Patch Set: . Created 3 years, 9 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 | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('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 a3fae243342f5cbddb0d313c4cb8e32373975ce6..bcf53d5960e42abd74ccc9c1a03d29e605860a7b 100644
--- a/content/browser/frame_host/debug_urls.cc
+++ b/content/browser/frame_host/debug_urls.cc
@@ -170,15 +170,19 @@ bool HandleDebugURL(const GURL& url, ui::PageTransition transition) {
GpuProcessHost::CallOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
false /* force_create */,
base::Bind([](GpuProcessHost* host) {
- host->gpu_service()->DestroyAllChannels();
+ if (host)
+ host->gpu_service()->DestroyAllChannels();
}));
return true;
}
if (url == kChromeUIGpuCrashURL) {
- GpuProcessHost::CallOnIO(
- GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, false /* force_create */,
- base::Bind([](GpuProcessHost* host) { host->gpu_service()->Crash(); }));
+ GpuProcessHost::CallOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
+ false /* force_create */,
+ base::Bind([](GpuProcessHost* host) {
+ if (host)
+ host->gpu_service()->Crash();
+ }));
return true;
}
@@ -187,16 +191,20 @@ bool HandleDebugURL(const GURL& url, ui::PageTransition transition) {
GpuProcessHost::CallOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
false /* force_create */,
base::Bind([](GpuProcessHost* host) {
- host->gpu_service()->ThrowJavaException();
+ if (host)
+ host->gpu_service()->ThrowJavaException();
}));
return true;
}
#endif
if (url == kChromeUIGpuHangURL) {
- GpuProcessHost::CallOnIO(
- GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, false /* force_create */,
- base::Bind([](GpuProcessHost* host) { host->gpu_service()->Hang(); }));
+ GpuProcessHost::CallOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
+ false /* force_create */,
+ base::Bind([](GpuProcessHost* host) {
+ if (host)
+ host->gpu_service()->Hang();
+ }));
return true;
}
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698