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

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: Rebased to ToT and transfered a fix from the original mm file. 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
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..a884d00c3da41833d773927af92f81aedefb1bdd 100644
--- a/chrome/browser/policy/policy_path_parser.h
+++ b/chrome/browser/policy/policy_path_parser.h
@@ -49,6 +49,11 @@ 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.
+void CheckUserDataDirPolicy(base::FilePath* user_data_dir);
brettw 2013/02/19 04:49:52 The comment here doesn't explain what the argument
pastarmovj 2013/02/19 14:09:43 Done.
+
} // namespace path_parser
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698