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

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

Issue 11103028: Logging: pass logging related cmd line options to utility process (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove extra empty line Created 8 years, 2 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
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 static const char* const kSwitchNames[] = { 160 static const char* const kSwitchNames[] = {
161 switches::kDisableApplicationCache, 161 switches::kDisableApplicationCache,
162 switches::kDisableDatabases, 162 switches::kDisableDatabases,
163 #if defined(OS_WIN) 163 #if defined(OS_WIN)
164 switches::kDisableDesktopNotifications, 164 switches::kDisableDesktopNotifications,
165 #endif 165 #endif
166 switches::kDisableFileSystem, 166 switches::kDisableFileSystem,
167 switches::kDisableSeccompFilterSandbox, 167 switches::kDisableSeccompFilterSandbox,
168 switches::kDisableWebSockets, 168 switches::kDisableWebSockets,
169 switches::kEnableLogging,
170 #if defined(OS_MACOSX) 169 #if defined(OS_MACOSX)
171 switches::kEnableSandboxLogging, 170 switches::kEnableSandboxLogging,
172 #endif 171 #endif
173 switches::kLoggingLevel,
174 }; 172 };
175 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, 173 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames,
176 arraysize(kSwitchNames)); 174 arraysize(kSwitchNames));
177 175
178 #if defined(OS_POSIX) 176 #if defined(OS_POSIX)
179 bool use_zygote = true; 177 bool use_zygote = true;
180 178
181 if (CommandLine::ForCurrentProcess()->HasSwitch( 179 if (CommandLine::ForCurrentProcess()->HasSwitch(
182 switches::kWaitForDebuggerChildren)) { 180 switches::kWaitForDebuggerChildren)) {
183 // Look to pass-on the kWaitForDebugger flag. 181 // Look to pass-on the kWaitForDebugger flag.
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 } 717 }
720 } 718 }
721 return false; 719 return false;
722 } 720 }
723 721
724 WorkerProcessHost::WorkerInstance::FilterInfo 722 WorkerProcessHost::WorkerInstance::FilterInfo
725 WorkerProcessHost::WorkerInstance::GetFilter() const { 723 WorkerProcessHost::WorkerInstance::GetFilter() const {
726 DCHECK(NumFilters() == 1); 724 DCHECK(NumFilters() == 1);
727 return *filters_.begin(); 725 return *filters_.begin();
728 } 726 }
OLDNEW
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698