Add API to override browser version.

This commit is contained in:
Cheng Zhao 2013-12-05 10:26:01 +08:00
parent 02bbf07d3a
commit 420ae1a2cc
6 changed files with 40 additions and 3 deletions

View file

@ -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);