Use bundle's name as application name when we have one.
This commit is contained in:
parent
a614134144
commit
fc4ed9be12
4 changed files with 29 additions and 2 deletions
|
@ -25,6 +25,12 @@ std::string Browser::GetExecutableFileVersion() const {
|
|||
return base::SysNSStringToUTF8(version);
|
||||
}
|
||||
|
||||
std::string Browser::GetExecutableFileProductName() const {
|
||||
NSDictionary* infoDictionary = base::mac::OuterBundle().infoDictionary;
|
||||
NSString *version = [infoDictionary objectForKey:@"CFBundleName"];
|
||||
return base::SysNSStringToUTF8(version);
|
||||
}
|
||||
|
||||
void Browser::CancelQuit() {
|
||||
[[AtomApplication sharedApplication] replyToApplicationShouldTerminate:NO];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue