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

Unified Diff: base/base_paths_mac.mm

Issue 10823157: Prettify Mac names, rewrite getDisplayPath API call to focus on $HOME (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Actually works on Mac now Created 8 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: base/base_paths_mac.mm
diff --git a/base/base_paths_mac.mm b/base/base_paths_mac.mm
index 14d1c201ca765d35bca7ce8ba87e1fda32e394b7..dbc0c7cac547f8481a6e57e28eeec837d5f5e984 100644
--- a/base/base_paths_mac.mm
+++ b/base/base_paths_mac.mm
@@ -59,6 +59,12 @@ bool PathProviderMac(int key, FilePath* result) {
reinterpret_cast<const void*>(&base::PathProviderMac));
case base::DIR_CACHE:
return base::mac::GetUserDirectory(NSCachesDirectory, result);
+ case base::DIR_DESKTOP:
+ return base::mac::GetUserDirectory(NSDesktopDirectory, result);
+ case base::DIR_DOCUMENTS:
+ return base::mac::GetUserDirectory(NSDocumentDirectory, result);
+ case base::DIR_DOWNLOADS:
+ return base::mac::GetUserDirectory(NSDownloadsDirectory, result);
case base::DIR_APP_DATA: {
bool success = base::mac::GetUserDirectory(NSApplicationSupportDirectory,
result);
« no previous file with comments | « base/base_paths_mac.h ('k') | base/mac/foundation_util.h » ('j') | base/mac/foundation_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698