| Index: chrome/common/chrome_paths.cc
|
| diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
|
| index 6f77510b3db9f6ecfd8ada04fa0a7e948c9ef843..181cf0aef6926f8c6544d63543b43eb1d2e8e240 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;
|
| }
|
|
|