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

Unified Diff: base/mac/foundation_util.h

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: update for benwells Created 8 years, 3 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 | base/mac/foundation_util.mm » ('j') | base/mac/foundation_util.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/foundation_util.h
diff --git a/base/mac/foundation_util.h b/base/mac/foundation_util.h
index ae4f03f7af8d8612564969727e03c04b4a4e8cf1..0acb87166c89f6ff906d93751e77c56b71e44f8b 100644
--- a/base/mac/foundation_util.h
+++ b/base/mac/foundation_util.h
@@ -85,6 +85,10 @@ BASE_EXPORT bool GetLocalDirectory(NSSearchPathDirectory directory,
BASE_EXPORT bool GetUserDirectory(NSSearchPathDirectory directory,
FilePath* result);
+// Retrieves the localized display name for the base name of the given path.
+// If the path is not localized, this will just return the base name.
+BASE_EXPORT std::string GetDisplayNameForPath(const FilePath& path);
+
// Returns the ~/Library directory.
BASE_EXPORT FilePath GetUserLibraryPath();
« no previous file with comments | « no previous file | base/mac/foundation_util.mm » ('j') | base/mac/foundation_util.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698