| Index: base/process/process_util_unittest.cc
|
| diff --git a/base/process/process_util_unittest.cc b/base/process/process_util_unittest.cc
|
| index 23d5181d5a48311089d528d12b55a694e73f9f9e..f45efc973c10697af581c3b6061c7b8b8be5f04a 100644
|
| --- a/base/process/process_util_unittest.cc
|
| +++ b/base/process/process_util_unittest.cc
|
| @@ -505,8 +505,10 @@ int ProcessUtilTest::CountOpenFDsInChild() {
|
|
|
| base::FileHandleMappingVector fd_mapping_vec;
|
| fd_mapping_vec.push_back(std::pair<int, int>(fds[1], kChildPipe));
|
| - base::ProcessHandle handle = this->SpawnChild(
|
| - "ProcessUtilsLeakFDChildProcess", fd_mapping_vec, false);
|
| + base::LaunchOptions options;
|
| + options.fds_to_remap = &fd_mapping_vec;
|
| + base::ProcessHandle handle = this->SpawnChildWithOptions(
|
| + "ProcessUtilsLeakFDChildProcess", options, false);
|
| CHECK(handle);
|
| int ret = IGNORE_EINTR(close(fds[1]));
|
| DPCHECK(ret == 0);
|
|
|