Index: chrome/common/chrome_paths_mac.mm |
=================================================================== |
--- chrome/common/chrome_paths_mac.mm (revision 137529) |
+++ chrome/common/chrome_paths_mac.mm (working copy) |
@@ -19,6 +19,12 @@ |
namespace { |
+// TODO(thestig) Remove this once we switch to the 10.6 SDK. |
+#if !defined(MAC_OS_X_VERSION_10_6) || \ |
+ MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6 |
+#define NSPicturesDirectory 19 |
+#endif |
+ |
const FilePath* g_override_versioned_directory = NULL; |
// Return a retained (NOT autoreleased) NSBundle* as the internal |
@@ -135,6 +141,10 @@ |
return base::mac::GetUserDirectory(NSDownloadsDirectory, result); |
} |
+bool GetUserPicturesDirectory(FilePath* result) { |
+ return base::mac::GetUserDirectory(NSPicturesDirectory, result); |
+} |
+ |
bool GetUserDesktop(FilePath* result) { |
return base::mac::GetUserDirectory(NSDesktopDirectory, result); |
} |