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

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

Issue 2203583002: Added unpacking step (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added use of temporary folders, removed semaphore from main installer code, adjusted some files' APIs, resolved remaining comments Created 4 years, 4 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 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 "MainDelegate.h"
6
7 @implementation MainDelegate
8
9 - (void)runApplication {
10 OmahaCommunication* omahaMessenger = [[OmahaCommunication alloc] init];
11 omahaMessenger.delegate = self;
12
13 [omahaMessenger fetchDownloadURLs];
14 }
15
16 - (void)onOmahaSuccessWithURLs:(NSArray*)URLs {
17 Downloader* download = [[Downloader alloc] init];
18 download.delegate = self;
19
20 [download downloadChromeImageToDownloadsDirectory:[URLs firstObject]];
21 }
22
23 - (void)onOmahaFailureWithError:(NSError*)error {
24 NSLog(@"error: %@", [error localizedDescription]);
25 exit(1);
26 }
27
28 - (void)onDownloadSuccess {
29 NSLog(@"end of program, exiting.");
30 NSLog(@"in the ideal world, we would be unpacking now");
31 exit(0);
32 }
33
34 - (void)onDownloadFailureWithError:(NSError*)error {
35 NSLog(@"error: %@", [error localizedDescription]);
36 exit(1);
37 }
38
39 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698