diff options
Diffstat (limited to 'chrome/common/chrome_paths.cc')
| -rw-r--r-- | chrome/common/chrome_paths.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc index 6f77510..181cf0a 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -295,6 +295,20 @@ bool PathProvider(int key, FilePath* result) { break; } #endif +#if defined(OS_MACOSX) + case chrome::DIR_MANAGED_PREFS: { + if (!GetLocalLibraryDirectory(&cur)) + return false; + cur = cur.Append(FILE_PATH_LITERAL("Managed Preferences")); + char* login = getlogin(); + if (!login) + return false; + cur = cur.AppendASCII(login); + if (!file_util::PathExists(cur)) // we don't want to create this + return false; + break; + } +#endif default: return false; } |
