diff options
author | rfevang <rfevang@chromium.org> | 2014-12-03 15:43:44 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-03 23:45:26 +0000 |
commit | 44b0c750ff6588cc893766ea74d3ff0203d46d75 (patch) | |
tree | f6cf33b1116c1fb67fadd9bdfcf043aaab86694a /win8/test | |
parent | 827b7ec19a0aa9f3eb4e8699914a723895890954 (diff) | |
download | chromium_src-44b0c750ff6588cc893766ea74d3ff0203d46d75.zip chromium_src-44b0c750ff6588cc893766ea74d3ff0203d46d75.tar.gz chromium_src-44b0c750ff6588cc893766ea74d3ff0203d46d75.tar.bz2 |
Revert of Upgrade the windows specific version of LaunchProcess to avoid raw handles. (patchset #3 id:40001 of https://codereview.chromium.org/759903002/)
Reason for revert:
Looks like it broke the 'Google Chrome Win' builder:
FAILED: ninja -t msvc -e environment.x86 -- c:\b\build\goma/gomacc "c:\b\depot_tools\win_toolchain\vs2013_files\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\win8\delegate_execute\delegate_execute.chrome_util.obj.rsp /c ..\..\win8\delegate_execute\chrome_util.cc /Foobj\win8\delegate_execute\delegate_execute.chrome_util.obj /Fdobj\win8\delegate_execute\delegate_execute.cc.pdb
c:\b\build\slave\google-chrome-rel-win\build\src\win8\delegate_execute\chrome_util.cc(119) : error C2665: 'base::LaunchProcess' : none of the 3 overloads could convert all the argument types
c:\b\build\slave\google-chrome-rel-win\build\src\base\process\launch.h(161): could be 'bool base::LaunchProcess(const base::CommandLine &,const base::LaunchOptions &,base::ProcessHandle *)'
while trying to match the argument list '(base::string16, base::LaunchOptions, base::win::ScopedHandle *)'
Original issue's description:
> Upgrade the windows specific version of LaunchProcess to avoid raw handles.
>
> This change implies that extensions::LaunchNativeProcess also changes to
> return base::Process, and that requires base::EnsureProcessTerminated to
> deal with base:Process (as it basically claims ownership of the process).
>
> This CL fixes some leaks all around.
>
> BUG=417532
>
> Committed: https://crrev.com/6b687a5e232c80539772dc3dbe35b98095064c38
> Cr-Commit-Position: refs/heads/master@{#306687}
TBR=cpu@chromium.org,finnur@chromium.org,gab@chromium.org,sergeyu@chromium.org,wez@chromium.org,rvargas@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=417532
Review URL: https://codereview.chromium.org/780653003
Cr-Commit-Position: refs/heads/master@{#306712}
Diffstat (limited to 'win8/test')
-rw-r--r-- | win8/test/metro_registration_helper.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win8/test/metro_registration_helper.cc b/win8/test/metro_registration_helper.cc index 59b2235..c5d6735 100644 --- a/win8/test/metro_registration_helper.cc +++ b/win8/test/metro_registration_helper.cc @@ -53,13 +53,13 @@ bool RegisterTestDefaultBrowser() { CommandLine register_command(registrar); register_command.AppendArg("/RegServer"); - base::Process register_process = - base::LaunchProcess(register_command.GetCommandLineString(), - base::LaunchOptions()); - if (register_process.IsValid()) { + base::win::ScopedHandle register_handle; + if (base::LaunchProcess(register_command.GetCommandLineString(), + base::LaunchOptions(), + ®ister_handle)) { int ret = 0; if (base::WaitForExitCodeWithTimeout( - register_process.Handle(), &ret, + register_handle.Get(), &ret, base::TimeDelta::FromSeconds(kRegistrationTimeoutSeconds))) { if (ret == 0) { return true; |