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

Side by Side Diff: chrome/installer/mac/app/NSAlert+ChromeInstallerAdditions.m

Issue 2203583002: Added unpacking step (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added DMG to build file Created 4 years, 3 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "NSAlert+ChromeInstallerAdditions.h" 5 #import "NSAlert+ChromeInstallerAdditions.h"
6 6
7 @implementation NSAlert (ChromeInstallerAdditions) 7 @implementation NSAlert (ChromeInstallerAdditions)
8 // In the one-button scenario, the button would be just "Quit." In the 8 // In the one-button scenario, the button would be just "Quit." In the
9 // two-button scenario, the first button would allow the user to "Retry" and 9 // two-button scenario, the first button would allow the user to "Retry" and
10 // the second button would provide the "Quit" option. 10 // the second button would provide the "Quit" option.
11 - (NSModalResponse)quitButton { 11 - (NSModalResponse)quitResponse {
12 return ([[self buttons] count] == 1) ? NSAlertFirstButtonReturn 12 return ([[self buttons] count] == 1) ? NSAlertFirstButtonReturn
13 : NSAlertSecondButtonReturn; 13 : NSAlertSecondButtonReturn;
14 } 14 }
15 @end 15 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698