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

Side by Side Diff: content/browser/worker_host/worker_process_host.cc

Issue 111343008: Copy the value of --no-sandbox when launching the worker process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/worker_host/worker_process_host.h" 5 #include "content/browser/worker_host/worker_process_host.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 #if defined(OS_WIN) 152 #if defined(OS_WIN)
153 switches::kDisableDesktopNotifications, 153 switches::kDisableDesktopNotifications,
154 #endif 154 #endif
155 switches::kDisableFileSystem, 155 switches::kDisableFileSystem,
156 switches::kDisableSeccompFilterSandbox, 156 switches::kDisableSeccompFilterSandbox,
157 switches::kEnableExperimentalWebPlatformFeatures, 157 switches::kEnableExperimentalWebPlatformFeatures,
158 switches::kEnableServiceWorker, 158 switches::kEnableServiceWorker,
159 #if defined(OS_MACOSX) 159 #if defined(OS_MACOSX)
160 switches::kEnableSandboxLogging, 160 switches::kEnableSandboxLogging,
161 #endif 161 #endif
162 switches::kJavaScriptFlags 162 switches::kJavaScriptFlags,
163 switches::kNoSandbox
163 }; 164 };
164 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, 165 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames,
165 arraysize(kSwitchNames)); 166 arraysize(kSwitchNames));
166 167
167 #if defined(OS_POSIX) 168 #if defined(OS_POSIX)
168 bool use_zygote = true; 169 bool use_zygote = true;
169 170
170 if (CommandLine::ForCurrentProcess()->HasSwitch( 171 if (CommandLine::ForCurrentProcess()->HasSwitch(
171 switches::kWaitForDebuggerChildren)) { 172 switches::kWaitForDebuggerChildren)) {
172 // Look to pass-on the kWaitForDebugger flag. 173 // Look to pass-on the kWaitForDebugger flag.
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 return false; 704 return false;
704 } 705 }
705 706
706 WorkerProcessHost::WorkerInstance::FilterInfo 707 WorkerProcessHost::WorkerInstance::FilterInfo
707 WorkerProcessHost::WorkerInstance::GetFilter() const { 708 WorkerProcessHost::WorkerInstance::GetFilter() const {
708 DCHECK(NumFilters() == 1); 709 DCHECK(NumFilters() == 1);
709 return *filters_.begin(); 710 return *filters_.begin();
710 } 711 }
711 712
712 } // namespace content 713 } // namespace content
OLDNEW
« 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