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

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

Issue 1875913002: Cleanup: Convert const char* kFoo to const char kFoo[]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/appcache/appcache_update_job.cc ('k') | content/browser/browser_main_loop.cc » ('j') | 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/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/debug/dump_without_crashing.h" 10 #include "base/debug/dump_without_crashing.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 SandboxedProcessLauncherDelegate* delegate, 180 SandboxedProcessLauncherDelegate* delegate,
181 base::CommandLine* cmd_line, 181 base::CommandLine* cmd_line,
182 bool terminate_on_shutdown) { 182 bool terminate_on_shutdown) {
183 DCHECK_CURRENTLY_ON(BrowserThread::IO); 183 DCHECK_CURRENTLY_ON(BrowserThread::IO);
184 184
185 GetContentClient()->browser()->AppendExtraCommandLineSwitches( 185 GetContentClient()->browser()->AppendExtraCommandLineSwitches(
186 cmd_line, data_.id); 186 cmd_line, data_.id);
187 187
188 const base::CommandLine& browser_command_line = 188 const base::CommandLine& browser_command_line =
189 *base::CommandLine::ForCurrentProcess(); 189 *base::CommandLine::ForCurrentProcess();
190 static const char* kForwardSwitches[] = { 190 static const char* const kForwardSwitches[] = {
191 switches::kDisableLogging, 191 switches::kDisableLogging,
192 switches::kEnableLogging, 192 switches::kEnableLogging,
193 switches::kIPCConnectionTimeout, 193 switches::kIPCConnectionTimeout,
194 switches::kLoggingLevel, 194 switches::kLoggingLevel,
195 switches::kTraceToConsole, 195 switches::kTraceToConsole,
196 switches::kV, 196 switches::kV,
197 switches::kVModule, 197 switches::kVModule,
198 }; 198 };
199 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, 199 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches,
200 arraysize(kForwardSwitches)); 200 arraysize(kForwardSwitches));
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 440
441 #if defined(OS_WIN) 441 #if defined(OS_WIN)
442 442
443 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { 443 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) {
444 OnChildDisconnected(); 444 OnChildDisconnected();
445 } 445 }
446 446
447 #endif 447 #endif
448 448
449 } // namespace content 449 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_update_job.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698