| Index: chrome/installer/mac/app/main.m
|
| diff --git a/chrome/installer/mac/app/main.m b/chrome/installer/mac/app/main.m
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3be9570efb6b1116d47fa2a2cc888a7d3d1aa82d
|
| --- /dev/null
|
| +++ b/chrome/installer/mac/app/main.m
|
| @@ -0,0 +1,22 @@
|
| +// 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 <Foundation/Foundation.h>
|
| +#import "downloader.h"
|
| +#import "request.h"
|
| +#import "systemInfo.h"
|
| +
|
| +int main(){
|
| + NSXMLDocument *requestBody = createXMLRequestBody([SystemInfo getOSVersion],
|
| + [SystemInfo getArch]);
|
| + NSURLRequest *request = createOmahaRequest(requestBody);
|
| + NSData *result = sendRequestAndReceiveResponse(request);
|
| +
|
| + Downloader *download = [[Downloader alloc] init];
|
| + [download downloadChromeImageToDownloadsDirectory: result];
|
| +
|
| + // NSURL *chromeURL = getChromeImageURL(result);
|
| + // NSData *chromeImageData = downloadChromeAsData(chromeURL);
|
| + // writeChromeImageToDownloadsDirectory(chromeImageData);
|
| +}
|
|
|