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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/policy_path_parser.h
diff --git a/chrome/browser/policy/policy_path_parser.h b/chrome/browser/policy/policy_path_parser.h
index 7f4bab1235c8e7870d0dc6c9be11f34dabc61587..f1d30b38cf6197c2c9a9544c1fcca03ca27fcc16 100644
--- a/chrome/browser/policy/policy_path_parser.h
+++ b/chrome/browser/policy/policy_path_parser.h
@@ -64,6 +64,13 @@ base::FilePath::StringType ExpandPathVariables(
// account.
void CheckUserDataDirPolicy(base::FilePath* user_data_dir);
+// A helper function used to read the DiskCacheDir path policy without relying
+// on any policy infrastructure. This is required because this policy may be
+// needed much earlier before the PrefService is initialized on Windows.
+// The function will fill |disk_cache_dir| if the policy "DiskCacheDir" is set
+// and leave it intact if the policy is missing.
+void CheckDiskCacheDirPolicy(base::FilePath* disk_cache_dir);
+
} // namespace path_parser
} // namespace policy
« 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