Add API to override browser version.
This commit is contained in:
parent
02bbf07d3a
commit
420ae1a2cc
6 changed files with 40 additions and 3 deletions
|
@ -19,7 +19,7 @@ void Browser::Focus() {
|
|||
[[AtomApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||
}
|
||||
|
||||
std::string Browser::GetVersion() {
|
||||
std::string Browser::GetExecutableFileVersion() const {
|
||||
NSDictionary* infoDictionary = base::mac::OuterBundle().infoDictionary;
|
||||
NSString *version = [infoDictionary objectForKey:@"CFBundleVersion"];
|
||||
return base::SysNSStringToUTF8(version);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue