diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-18 21:38:02 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-18 21:38:02 +0000 |
commit | 89a5616f0bdd3842854f559de57ad84a13690210 (patch) | |
tree | 1c5dd24519c150c94936abfb2b6994067e7cae7c /cloud_print | |
parent | 5c8ee43d773ee0a1877db2e5dffc3e57a6873f67 (diff) | |
download | chromium_src-89a5616f0bdd3842854f559de57ad84a13690210.zip chromium_src-89a5616f0bdd3842854f559de57ad84a13690210.tar.gz chromium_src-89a5616f0bdd3842854f559de57ad84a13690210.tar.bz2 |
Convert the remaining callers of LaunchApp to LaunchProcess.
And delete temporary shims.
BUG=88990
Review URL: http://codereview.chromium.org/7386010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/virtual_driver/win/install/setup.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cloud_print/virtual_driver/win/install/setup.cc b/cloud_print/virtual_driver/win/install/setup.cc index 6ee3109..c9dfe6b 100644 --- a/cloud_print/virtual_driver/win/install/setup.cc +++ b/cloud_print/virtual_driver/win/install/setup.cc @@ -92,21 +92,23 @@ HRESULT RegisterPortMonitor(bool install) { LOG(ERROR) << "Can't find regsvr32.exe."; return result; } + CommandLine command_line(regsvr32_path); command_line.AppendArg("/s"); if (!install) { command_line.AppendArg("/u"); } command_line.AppendArgPath(source_path); + + base::LaunchOptions options; HANDLE process_handle; - if (!base::LaunchApp(command_line.command_line_string(), - true, - false, - &process_handle)) { + options.wait = true; + if (!base::LaunchProcess(command_line, options, &process_handle)) { LOG(ERROR) << "Unable to launch regsvr32.exe."; return ERROR_NOT_SUPPORTED; } base::win::ScopedHandle scoped_process_handle(process_handle); + DWORD exit_code = S_OK; if (!GetExitCodeProcess(scoped_process_handle, &exit_code)) { HRESULT result = cloud_print::GetLastHResult(); |