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

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

Issue 189603007: Let DCHECK in non-official-release build be opt-in with dcheck_always_on=1 only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
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_child_process_host_impl.h" 5 #include "content/browser/browser_child_process_host_impl.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 #endif 138 #endif
139 CommandLine* cmd_line) { 139 CommandLine* cmd_line) {
140 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 140 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
141 141
142 GetContentClient()->browser()->AppendExtraCommandLineSwitches( 142 GetContentClient()->browser()->AppendExtraCommandLineSwitches(
143 cmd_line, data_.id); 143 cmd_line, data_.id);
144 144
145 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 145 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
146 static const char* kForwardSwitches[] = { 146 static const char* kForwardSwitches[] = {
147 switches::kDisableLogging, 147 switches::kDisableLogging,
148 switches::kEnableDCHECK,
149 switches::kEnableLogging, 148 switches::kEnableLogging,
150 switches::kLoggingLevel, 149 switches::kLoggingLevel,
151 switches::kTraceToConsole, 150 switches::kTraceToConsole,
152 switches::kV, 151 switches::kV,
153 switches::kVModule, 152 switches::kVModule,
154 #if defined(OS_POSIX) 153 #if defined(OS_POSIX)
155 switches::kChildCleanExit, 154 switches::kChildCleanExit,
156 #endif 155 #endif
157 #if defined(OS_WIN) 156 #if defined(OS_WIN)
158 switches::kEnableHighResolutionTime, 157 switches::kEnableHighResolutionTime,
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 363
365 void BrowserChildProcessHostImpl::OnProcessExitedEarly( 364 void BrowserChildProcessHostImpl::OnProcessExitedEarly(
366 base::WaitableEvent* event) { 365 base::WaitableEvent* event) {
367 DeleteProcessWaitableEvent(event); 366 DeleteProcessWaitableEvent(event);
368 OnChildDisconnected(); 367 OnChildDisconnected();
369 } 368 }
370 369
371 #endif 370 #endif
372 371
373 } // namespace content 372 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698