Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1029)

Side by Side Diff: chrome/installer/mac/app/main.m

Issue 2094583004: Initial commit for Chrome metainstaller on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import <Foundation/Foundation.h>
6 #import "downloader.h"
7 #import "request.h"
8
9 int main(){
10 NSXMLDocument *requestXMLDocument = createXMLRequestBody(getOSVersion(),
11 getArchitecture());
12 NSURLRequest *request = createOmahaRequest(requestXMLDocument);
13 NSData *result = sendRequestAndReceiveResponse(request);
14
15 NSURL *chromeURL = getChromeImageURL(result);
16 NSData *topSecretData = downloadChromeAsData(chromeURL);
Elly Fong-Jones 2016/06/24 17:26:01 chromeImageData?
17 writeDataToDisk(topSecretData);
18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698