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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 65193003: Clear SingleProcess and InProcessGPU logic. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Extract RegisterMainThreadFactories() from RunNamedProcessTypeMain() for readability. Created 7 years, 1 month 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
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 9ddd540ae71e98673dc7a3fb1972018125688846..2cb58742911625cb4e08c5e347095bb5fa491fc9 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -563,7 +563,8 @@ bool GpuProcessHost::Init() {
if (channel_id.empty())
return false;
- if (in_process_ && g_gpu_main_thread_factory) {
+ if (in_process_) {
+ DCHECK(g_gpu_main_thread_factory);
CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kDisableGpuWatchdog);

Powered by Google App Engine
This is Rietveld 408576698