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

Side by Side Diff: chrome/browser/policy/policy_path_parser.h

Issue 1986823002: Reset user data directory and disk cache directory after downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/downgrade/user_data_downgrade_browsertest.cc ('k') | chrome/browser/policy/policy_path_parser_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698