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

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: Addressed comments. 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..b226765e0b7921393f29f9aaf0db0756369b3d80 100644
--- a/chrome/browser/policy/policy_path_parser.h
+++ b/chrome/browser/policy/policy_path_parser.h
@@ -49,6 +49,13 @@ 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 corresponding policy is set and
brettw 2013/02/19 18:23:45 Can you rephrase this a bit? I don't know what the
pastarmovj 2013/02/20 10:15:05 Done.
+// leave it intact if the policy is missing.
+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