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

Unified Diff: chrome/browser/policy/policy_path_parser.h

Issue 12277002: Make sure ShellIntegration::CommandLineArgsForLauncher respects the UserDataDir policy. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More documentation. Created 7 years, 10 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
« no previous file with comments | « chrome/app/chrome_main_mac.mm ('k') | chrome/browser/policy/policy_path_parser_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ce940c33830fca37fd763259fde5679dc27998ba..5afc09985a3d85ff9b95490d99ca755645855664 100644
--- a/chrome/browser/policy/policy_path_parser.h
+++ b/chrome/browser/policy/policy_path_parser.h
@@ -49,6 +49,17 @@ namespace path_parser {
base::FilePath::StringType ExpandPathVariables(
const base::FilePath::StringType& untranslated_string);
+// A helper function used to read the UserDataDir path policy without relying on
+// any policy infrastructure. This is required because this policy is needed
+// much earlier before the PrefService is initialized.
+// The function will fill |user_data_dir| if the policy "UserDataDir" is set and
+// leave it intact if the policy is missing. If the policy is set it should
+// override any manual changes to the profile path the user might have made so
+// this function should be used to verify no policy is specified whenever the
+// profile path is not read from the PathService which already takes this into
+// account.
+void CheckUserDataDirPolicy(base::FilePath* user_data_dir);
+
} // namespace path_parser
} // namespace policy
« no previous file with comments | « chrome/app/chrome_main_mac.mm ('k') | chrome/browser/policy/policy_path_parser_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698