Update install_worker.cc

This commit is contained in:
Alexander David Frick 2022-07-06 20:16:53 -05:00 committed by GitHub
parent 3436005943
commit 52c0ae6c60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,6 +256,7 @@ class ProcessPathPrefixFilter : public base::ProcessFilter {
// Gracefully closes previous Chrome process in |target_path|.
void ClosePreviousChromeProcess(const base::FilePath& target_path) {
const wchar_t kChromeExe[] = L"thorium.exe";
ProcessPathPrefixFilter target_path_filter(target_path.value());
base::CleanupProcesses(installer::kChromeExe, base::TimeDelta(),
content::RESULT_CODE_NORMAL_EXIT, &target_path_filter);