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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 1643533006: Use a single, generic, global zygote to temporarily resolve perf regressions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // otherwise. 220 // otherwise.
221 LOG(FATAL) << no_suid_error; 221 LOG(FATAL) << no_suid_error;
222 } 222 }
223 } else { 223 } else {
224 LOG(ERROR) << no_suid_error; 224 LOG(ERROR) << no_suid_error;
225 } 225 }
226 226
227 // Tickle the sandbox host and zygote host so they fork now. 227 // Tickle the sandbox host and zygote host so they fork now.
228 RenderSandboxHostLinux::GetInstance()->Init(); 228 RenderSandboxHostLinux::GetInstance()->Init();
229 ZygoteHostImpl::GetInstance()->Init(sandbox_binary.value()); 229 ZygoteHostImpl::GetInstance()->Init(sandbox_binary.value());
230 RenderProcessHostImpl::EarlyZygoteLaunch(); 230 RenderProcessHostImpl::EarlyZygoteLaunch();
mdempsky 2016/01/28 23:25:40 Before RenderProcessHostImpl::EarlyZygoteLaunch, a
Greg K 2016/01/29 00:41:03 Done.
231 PpapiPluginProcessHost::EarlyZygoteLaunch();
232 UtilityProcessHostImpl::EarlyZygoteLaunch();
233 } 231 }
234 #endif 232 #endif
235 233
236 #if defined(USE_GLIB) 234 #if defined(USE_GLIB)
237 static void GLibLogHandler(const gchar* log_domain, 235 static void GLibLogHandler(const gchar* log_domain,
238 GLogLevelFlags log_level, 236 GLogLevelFlags log_level,
239 const gchar* message, 237 const gchar* message,
240 gpointer userdata) { 238 gpointer userdata) {
241 if (!log_domain) 239 if (!log_domain)
242 log_domain = "<unknown>"; 240 log_domain = "<unknown>";
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 DCHECK(is_tracing_startup_for_duration_); 1466 DCHECK(is_tracing_startup_for_duration_);
1469 1467
1470 is_tracing_startup_for_duration_ = false; 1468 is_tracing_startup_for_duration_ = false;
1471 TracingController::GetInstance()->StopTracing( 1469 TracingController::GetInstance()->StopTracing(
1472 TracingController::CreateFileSink( 1470 TracingController::CreateFileSink(
1473 startup_trace_file_, 1471 startup_trace_file_,
1474 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); 1472 base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
1475 } 1473 }
1476 1474
1477 } // namespace content 1475 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698