| OLD | NEW |
| 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 #ifndef CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ | 5 #ifndef CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ |
| 6 #define CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ | 6 #define CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 @interface NSError (ChromeInstallerAdditions) | 10 @interface NSError (ChromeInstallerAdditions) |
| 11 // Creates a custom error object to be used as the popup alert that the user | 11 // Creates a custom error object to be used to create an alert to be shown to |
| 12 // will be shown. | 12 // the user. |
| 13 + (NSError*)errorForAlerts:(NSString*)message | 13 + (NSError*)errorForAlerts:(NSString*)message |
| 14 withDescription:(NSString*)description | 14 withDescription:(NSString*)description |
| 15 isRecoverable:(BOOL)recoverable; | 15 isRecoverable:(BOOL)recoverable; |
| 16 @end | 16 @end |
| 17 | 17 |
| 18 #endif // CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ | 18 #endif // CHROME_INSTALLER_MAC_APP_NSERROR_CHROMEINSTALLERADDITIONS_H_ |
| OLD | NEW |