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

Side by Side Diff: base/test/multiprocess_test.cc

Issue 7377012: Change base::LaunchProcess API slightly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | « base/process_util_win.cc ('k') | chrome/browser/browser_main.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/test/multiprocess_test.h" 5 #include "base/test/multiprocess_test.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 #if defined(OS_POSIX) 10 #if defined(OS_POSIX)
(...skipping 29 matching lines...) Expand all
40 cl.AppendSwitch(switches::kDebugOnStart); 40 cl.AppendSwitch(switches::kDebugOnStart);
41 return cl; 41 return cl;
42 } 42 }
43 43
44 ProcessHandle MultiProcessTest::SpawnChildImpl( 44 ProcessHandle MultiProcessTest::SpawnChildImpl(
45 const std::string& procname, 45 const std::string& procname,
46 const file_handle_mapping_vector& fds_to_map, 46 const file_handle_mapping_vector& fds_to_map,
47 bool debug_on_start) { 47 bool debug_on_start) {
48 ProcessHandle handle = kNullProcessHandle; 48 ProcessHandle handle = kNullProcessHandle;
49 base::LaunchOptions options; 49 base::LaunchOptions options;
50 options.process_handle = &handle;
51 #if defined(OS_WIN) 50 #if defined(OS_WIN)
52 options.start_hidden = true; 51 options.start_hidden = true;
53 #else 52 #else
54 options.fds_to_remap = &fds_to_map; 53 options.fds_to_remap = &fds_to_map;
55 #endif 54 #endif
56 base::LaunchProcess(MakeCmdLine(procname, debug_on_start), options); 55 base::LaunchProcess(MakeCmdLine(procname, debug_on_start), options, &handle);
57 return handle; 56 return handle;
58 } 57 }
59 58
60 } // namespace base 59 } // namespace base
OLDNEW
« no previous file with comments | « base/process_util_win.cc ('k') | chrome/browser/browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698