summaryrefslogtreecommitdiffstats
path: root/base/base_paths_mac.mm
diff options
context:
space:
mode:
authorthorogood@chromium.org <thorogood@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-23 08:22:44 +0000
committerthorogood@chromium.org <thorogood@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-23 08:22:44 +0000
commit92e44ae0ad94910984b79979ad47d6b32b534c57 (patch)
tree9144c20bd36d281f3885c1b29539142b8cce0a55 /base/base_paths_mac.mm
parentaf312ef7fecc613eef9532fd64b48ca23110db09 (diff)
downloadchromium_src-92e44ae0ad94910984b79979ad47d6b32b534c57.zip
chromium_src-92e44ae0ad94910984b79979ad47d6b32b534c57.tar.gz
chromium_src-92e44ae0ad94910984b79979ad47d6b32b534c57.tar.bz2
Prettify output from chrome.fileSystem.getDisplayPath for POSIX profile directories
This duplicates review 10693089, except for POSIX. Modifies e.g. "/home/sam/foo" to "~/foo". As a dependency, adds DIR_HOME to PathService for retrieving POSIX home directory. BUG=135690 TEST= Review URL: https://chromiumcodereview.appspot.com/10700136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths_mac.mm')
-rw-r--r--base/base_paths_mac.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/base_paths_mac.mm b/base/base_paths_mac.mm
index 56f3ecb..e46fd1e 100644
--- a/base/base_paths_mac.mm
+++ b/base/base_paths_mac.mm
@@ -83,6 +83,10 @@ bool PathProviderMac(int key, FilePath* result) {
#endif
return true;
}
+ case base::DIR_HOME: {
+ *result = base::mac::NSStringToFilePath(NSHomeDirectory());
+ return true;
+ }
default:
return false;
}