Commit 1b8cecd3 authored by Shengfa Lin's avatar Shengfa Lin Committed by Commit Bot

[chromedriver] Find chrome binary in Windows C:\Program Files

Chrome changed its install path in 85 to C:\Program Files
We are only searching for C:\Program Files (x86)
This is to check C:\Program Files as well

Bug: chromedriver:3577
Change-Id: I5ad423197017b96a801517b0787873dda5a67b88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2368163Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Shengfa Lin <shengfa@google.com>
Cr-Commit-Position: refs/heads/master@{#800383}
parent c29d05df
......@@ -33,13 +33,16 @@ namespace {
#if defined(OS_WIN)
void GetApplicationDirs(std::vector<base::FilePath>* locations) {
std::vector<base::FilePath> installation_locations;
base::FilePath local_app_data, program_files, program_files_x86;
base::FilePath local_app_data, program_files, program_files_x86,
program_files_64_32;
if (base::PathService::Get(base::DIR_LOCAL_APP_DATA, &local_app_data))
installation_locations.push_back(local_app_data);
if (base::PathService::Get(base::DIR_PROGRAM_FILES, &program_files))
installation_locations.push_back(program_files);
if (base::PathService::Get(base::DIR_PROGRAM_FILESX86, &program_files_x86))
installation_locations.push_back(program_files_x86);
if (base::PathService::Get(base::DIR_PROGRAM_FILES6432, &program_files_64_32))
installation_locations.push_back(program_files_64_32);
for (size_t i = 0; i < installation_locations.size(); ++i) {
locations->push_back(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment