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

Unified Diff: base/mac/sdk_forward_declarations.h

Issue 2393793002: Mac: Port deprecated methods to 10.8+ alternatives in install_from_dmg.mm. (Closed)
Patch Set: Print out the returned error message on trashing failure. Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/mac/install_from_dmg.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/sdk_forward_declarations.h
diff --git a/base/mac/sdk_forward_declarations.h b/base/mac/sdk_forward_declarations.h
index a4b64dc153d91e2533930952f3d4f1cf7726bd21..954b3fe63c0486ff1729d44ff82d5d49e6087125 100644
--- a/base/mac/sdk_forward_declarations.h
+++ b/base/mac/sdk_forward_declarations.h
@@ -129,6 +129,12 @@ BASE_EXPORT extern NSString* const NSAppearanceNameVibrantLight;
- (void)setObject:(id)obj forKeyedSubscript:(id<NSCopying>)key;
@end
+@interface NSFileManager (MountainLionSDK)
+- (BOOL)trashItemAtURL:(NSURL*)url
+ resultingItemURL:(NSURL**)outResultingURL
+ error:(NSError**)error;
+@end
+
#endif // MAC_OS_X_VERSION_10_8
// Once Chrome no longer supports OSX 10.8, everything within this preprocessor
« no previous file with comments | « no previous file | chrome/browser/mac/install_from_dmg.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698