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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/installer/mac/app/MainDelegate.m
diff --git a/chrome/installer/mac/app/MainDelegate.m b/chrome/installer/mac/app/MainDelegate.m
deleted file mode 100644
index 0a9c28dadf067c9403041eb5821bd2a9794bf557..0000000000000000000000000000000000000000
--- a/chrome/installer/mac/app/MainDelegate.m
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 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 "MainDelegate.h"
-
-@implementation MainDelegate
-
-- (void)runApplication {
- OmahaCommunication* omahaMessenger = [[OmahaCommunication alloc] init];
- omahaMessenger.delegate = self;
-
- [omahaMessenger fetchDownloadURLs];
-}
-
-- (void)onOmahaSuccessWithURLs:(NSArray*)URLs {
- Downloader* download = [[Downloader alloc] init];
- download.delegate = self;
-
- [download downloadChromeImageToDownloadsDirectory:[URLs firstObject]];
-}
-
-- (void)onOmahaFailureWithError:(NSError*)error {
- NSLog(@"error: %@", [error localizedDescription]);
- exit(1);
-}
-
-- (void)onDownloadSuccess {
- NSLog(@"end of program, exiting.");
- NSLog(@"in the ideal world, we would be unpacking now");
- exit(0);
-}
-
-- (void)onDownloadFailureWithError:(NSError*)error {
- NSLog(@"error: %@", [error localizedDescription]);
- exit(1);
-}
-
-@end

Powered by Google App Engine
This is Rietveld 408576698