Chromium Code Reviews| 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 #if defined(OS_WIN) | |
|
grt (UTC plus 2)
2016/05/19 23:39:27
although it's only used on Win, it's cleaner to de
zmin
2016/05/20 00:52:25
Done. But I'll leave Linux/Mac version as unimplem
grt (UTC plus 2)
2016/05/20 15:25:04
Acknowledged.
| |
| 68 // A helper function used to read the DiskCacheDir path policy without relying | |
| 69 // on any policy infrastructure. This is required because this policy may be | |
| 70 // needed much earlier before the PrefService is initialized on Windows. | |
| 71 // The function will fill |disk_cache_dir| if the policy "DiskCacheDir" is set | |
| 72 // and leave it intact if the policy is missing. | |
| 73 void CheckDiskCacheDirPolicy(base::FilePath* disk_cache_dir); | |
| 74 #endif | |
| 75 | |
| 67 } // namespace path_parser | 76 } // namespace path_parser |
| 68 | 77 |
| 69 } // namespace policy | 78 } // namespace policy |
| 70 | 79 |
| 71 #endif // CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ | 80 #endif // CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ |
| OLD | NEW |