Index: content/browser/gpu/gpu_process_host.cc |
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc |
index dc2707091adb658ea7ec34b7cd7860bf8a2a3404..8c3a201cc673bc620b7a84c66dc58eebcfd58c06 100644 |
--- a/content/browser/gpu/gpu_process_host.cc |
+++ b/content/browser/gpu/gpu_process_host.cc |
@@ -91,6 +91,10 @@ |
#include "content/browser/gpu/gpu_surface_tracker.h" |
#endif |
+#if defined(MOJO_SHELL_CLIENT) |
+#include "services/shell/runner/common/client_util.h" |
+#endif |
+ |
namespace content { |
bool GpuProcessHost::gpu_enabled_ = true; |
@@ -313,6 +317,9 @@ bool GpuProcessHost::ValidateHost(GpuProcessHost* host) { |
// static |
GpuProcessHost* GpuProcessHost::Get(GpuProcessKind kind, |
CauseForGpuLaunch cause) { |
+#if defined(MOJO_SHELL_CLIENT) |
+ DCHECK(!shell::ShellIsRemote()); |
+#endif |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
// Don't grant further access to GPU if it is not allowed. |