| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ |
| 6 #define CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ | 6 #define CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // any policy infrastructure. This is required because this policy is needed | 57 // any policy infrastructure. This is required because this policy is needed |
| 58 // much earlier before the PrefService is initialized. | 58 // much earlier before the PrefService is initialized. |
| 59 // The function will fill |user_data_dir| if the policy "UserDataDir" is set and | 59 // The function will fill |user_data_dir| if the policy "UserDataDir" is set and |
| 60 // leave it intact if the policy is missing. If the policy is set it should | 60 // leave it intact if the policy is missing. If the policy is set it should |
| 61 // override any manual changes to the profile path the user might have made so | 61 // override any manual changes to the profile path the user might have made so |
| 62 // this function should be used to verify no policy is specified whenever the | 62 // this function should be used to verify no policy is specified whenever the |
| 63 // profile path is not read from the PathService which already takes this into | 63 // profile path is not read from the PathService which already takes this into |
| 64 // account. | 64 // account. |
| 65 void CheckUserDataDirPolicy(base::FilePath* user_data_dir); | 65 void CheckUserDataDirPolicy(base::FilePath* user_data_dir); |
| 66 | 66 |
| 67 // A helper function used to read the DiskCacheDir path policy without relying |
| 68 // on any policy infrastructure. This is required because this policy may be |
| 69 // needed much earlier before the PrefService is initialized on Windows. |
| 70 // The function will fill |disk_cache_dir| if the policy "DiskCacheDir" is set |
| 71 // and leave it intact if the policy is missing. |
| 72 void CheckDiskCacheDirPolicy(base::FilePath* disk_cache_dir); |
| 73 |
| 67 } // namespace path_parser | 74 } // namespace path_parser |
| 68 | 75 |
| 69 } // namespace policy | 76 } // namespace policy |
| 70 | 77 |
| 71 #endif // CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ | 78 #endif // CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ |
| OLD | NEW |