修改chrome_finder.cc文件中,以下两处代码:
for (size_t i = 0; i < installation_locations.size(); ++i) {
locations->push_back(
installation_locations[i].Append(L"XXBrowser")); //这里替换为对应的内核的浏览器,或者用列表。
}
for (size_t i = 0; i < installation_locations.size(); ++i) {
locations->push_back(
installation_locations[i].Append(L"Google\\Chrome\\Application"));
}
for (size_t i = 0; i < installation_locations.size(); ++i) {
locations->push_back(
installation_locations[i].Append(L"Chromium\\Application"));
}
}
bool FindChrome(base::FilePath* browser_exe) {
#if defined(OS_WIN)
base::FilePath browser_exes_array[] = {
base::FilePath(L"chrome.exe"),
base::FilePath(L"XXBrowser.exe") //这里加上为对应的内核的浏览器,或者用列表。
};