Skip to content

Commit

Permalink
fix: build failure on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sorah committed Apr 28, 2020
1 parent eb96aff commit b8f4e09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shell/common/language_util_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
namespace electron {

std::vector<std::string> GetPreferredLanguages() {
std::vector<std::string> languages = {l10n_util::GetApplicationLocale("")};
return languages;
// Return empty as there's no API to use. You may be able to use
// GetApplicationLocale() of a browser process.
return std::vector<std::string>{};
}

} // namespace electron

0 comments on commit b8f4e09

Please sign in to comment.