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

Side by Side Diff: content/browser/android/child_process_launcher_android.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
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/android/child_process_launcher_android.h" 5 #include "content/browser/android/child_process_launcher_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 NOTREACHED() << "Unable to get download process binary name."; 129 NOTREACHED() << "Unable to get download process binary name.";
130 return; 130 return;
131 } 131 }
132 base::CommandLine* cmd_line = new base::CommandLine(exe_path); 132 base::CommandLine* cmd_line = new base::CommandLine(exe_path);
133 cmd_line->AppendSwitchASCII(switches::kProcessType, 133 cmd_line->AppendSwitchASCII(switches::kProcessType,
134 switches::kDownloadProcess); 134 switches::kDownloadProcess);
135 cmd_line->AppendSwitch(switches::kNoSandbox); 135 cmd_line->AppendSwitch(switches::kNoSandbox);
136 136
137 const base::CommandLine browser_command_line = 137 const base::CommandLine browser_command_line =
138 *base::CommandLine::ForCurrentProcess(); 138 *base::CommandLine::ForCurrentProcess();
139 static const char* kForwardSwitches[] = { 139 static const char* const kForwardSwitches[] = {
140 switches::kDisableLogging, 140 switches::kDisableLogging,
141 switches::kEnableLogging, 141 switches::kEnableLogging,
142 switches::kLoggingLevel, 142 switches::kLoggingLevel,
143 }; 143 };
144 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, 144 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches,
145 arraysize(kForwardSwitches)); 145 arraysize(kForwardSwitches));
146 CHECK(!cmd_line->HasSwitch(switches::kSingleProcess)); 146 CHECK(!cmd_line->HasSwitch(switches::kSingleProcess));
147 BrowserThread::PostTask(BrowserThread::PROCESS_LAUNCHER, FROM_HERE, 147 BrowserThread::PostTask(BrowserThread::PROCESS_LAUNCHER, FROM_HERE,
148 base::Bind(&LaunchDownloadProcess, cmd_line)); 148 base::Bind(&LaunchDownloadProcess, cmd_line));
149 } 149 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 jboolean IsSingleProcess(JNIEnv* env, const JavaParamRef<jclass>& clazz) { 277 jboolean IsSingleProcess(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
278 return base::CommandLine::ForCurrentProcess()->HasSwitch( 278 return base::CommandLine::ForCurrentProcess()->HasSwitch(
279 switches::kSingleProcess); 279 switches::kSingleProcess);
280 } 280 }
281 281
282 bool RegisterChildProcessLauncher(JNIEnv* env) { 282 bool RegisterChildProcessLauncher(JNIEnv* env) {
283 return RegisterNativesImpl(env); 283 return RegisterNativesImpl(env);
284 } 284 }
285 285
286 } // namespace content 286 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/accessibility_tree_formatter_win.cc ('k') | content/browser/appcache/appcache_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698