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

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: add code in mini_installer Created 4 years, 7 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..270f23aabc2f4585e6e1bee174cdeb4a6729a7e2 100644
--- a/chrome/browser/policy/policy_path_parser.h
+++ b/chrome/browser/policy/policy_path_parser.h
@@ -64,6 +64,15 @@ base::FilePath::StringType ExpandPathVariables(
// account.
void CheckUserDataDirPolicy(base::FilePath* user_data_dir);
+#if defined(OS_WIN)
+// 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);
+#endif
+
} // namespace path_parser
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698