Chromium Code Reviews| 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..73500362958ece79307cea3fad632b979df3b314 |
| --- /dev/null |
| +++ b/chrome/installer/mac/app/main.m |
| @@ -0,0 +1,18 @@ |
| +// 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" |
| + |
| +int main(){ |
| + NSXMLDocument *requestXMLDocument = createXMLRequestBody(getOSVersion(), |
| + getArchitecture()); |
| + NSURLRequest *request = createOmahaRequest(requestXMLDocument); |
| + NSData *result = sendRequestAndReceiveResponse(request); |
| + |
| + NSURL *chromeURL = getChromeImageURL(result); |
| + NSData *topSecretData = downloadChromeAsData(chromeURL); |
|
Elly Fong-Jones
2016/06/24 17:26:01
chromeImageData?
|
| + writeDataToDisk(topSecretData); |
| +} |