chore: remove ancient Browser::Focus implementation on Windows (#27279)

This commit is contained in:
Cheng Zhao 2021-01-14 06:46:54 +09:00 committed by GitHub
parent 0599487e65
commit cd42933f41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 29 deletions

View file

@ -84,16 +84,6 @@ bool SetDefaultWebClient(const std::string& protocol) {
return ran_ok && exit_code == EXIT_SUCCESS;
}
void Browser::Focus(gin::Arguments* args) {
// Focus on the first visible window.
for (auto* const window : WindowList::GetWindows()) {
if (window->IsVisible()) {
window->Focus(true);
break;
}
}
}
void Browser::AddRecentDocument(const base::FilePath& path) {}
void Browser::ClearRecentDocuments() {}