| Index: chrome/installer/mac/app/systemInfo.m
|
| diff --git a/chrome/installer/mac/app/systemInfo.m b/chrome/installer/mac/app/systemInfo.m
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..03e22c87ea9df504ae08e565a03b8a0b17e68fc5
|
| --- /dev/null
|
| +++ b/chrome/installer/mac/app/systemInfo.m
|
| @@ -0,0 +1,23 @@
|
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#import "systemInfo.h"
|
| +#include <mach-o/arch.h>
|
| +
|
| +@implementation SystemInfo
|
| +
|
| ++ (NSString *) getArch {
|
| + const NXArchInfo *arch = NXGetLocalArchInfo();
|
| + NSString *archName = [NSString stringWithUTF8String:arch->name];
|
| + return archName;
|
| +}
|
| +
|
| ++ (NSString *) getOSVersion {
|
| + NSString *versionString = [[NSProcessInfo processInfo]
|
| + operatingSystemVersionString];
|
| + NSString *versionNumber = [[versionString componentsSeparatedByString:@" "]
|
| + objectAtIndex:1];
|
| + return versionNumber;
|
| +}
|
| +@end
|
|
|