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

Unified Diff: content/app/content_main_runner.cc

Issue 1055413002: Don't crash service process on start initializing V8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 43c0d006ccadb7f294366c41e4489e00ba5db2f7..7c8e7ebd677c577abe32ebd6b6a21013db385cc8 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -703,7 +703,8 @@ class ContentMainRunnerImpl : public ContentMainRunner {
// kV8NativesDataDescriptor and kV8SnapshotDataDescriptor are shared with
// child processes. On Android they are set in
// ChildProcessService::InternalInitChildProcess, otherwise set them here.
- if (!process_type.empty() && process_type != switches::kZygoteProcess) {
+ if (!process_type.empty() && process_type != switches::kZygoteProcess
+ && process_type != "service") {
g_fds->Set(
kV8NativesDataDescriptor,
kV8NativesDataDescriptor + base::GlobalDescriptors::kBaseDescriptor);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698