Use bundle's name as application name when we have one.

This commit is contained in:
Cheng Zhao 2013-12-05 10:42:04 +08:00
parent a614134144
commit fc4ed9be12
4 changed files with 29 additions and 2 deletions

View file

@ -48,7 +48,13 @@ void Browser::SetVersion(const std::string& version) {
}
std::string Browser::GetName() const {
return name_override_.empty() ? "Atom-Shell" : name_override_;
if (name_override_.empty()) {
std::string name = GetExecutableFileProductName();
if (!name.empty())
return name;
}
return name_override_;
}
void Browser::SetName(const std::string& name) {