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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ 5 #ifndef CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_
6 #define CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ 6 #define CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // ${users} - The folder where users profiles are stored 42 // ${users} - The folder where users profiles are stored
43 // (example : "/Users") 43 // (example : "/Users")
44 // ${documents} - The "Documents" folder of the current user. 44 // ${documents} - The "Documents" folder of the current user.
45 // (example : "/Users/johndoe/Documents") 45 // (example : "/Users/johndoe/Documents")
46 // Any non recognized variable is not being translated at all. Variables are 46 // Any non recognized variable is not being translated at all. Variables are
47 // translated only once in every string because for most of these there is no 47 // translated only once in every string because for most of these there is no
48 // sense in concatenating them more than once in a single path. 48 // sense in concatenating them more than once in a single path.
49 base::FilePath::StringType ExpandPathVariables( 49 base::FilePath::StringType ExpandPathVariables(
50 const base::FilePath::StringType& untranslated_string); 50 const base::FilePath::StringType& untranslated_string);
51 51
52 // A helper function used to read the UserDataDir path policy without relying on
53 // any policy infrastructure. This is required because this policy is needed
54 // much earlier before the PrefService is initialized.
55 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.
56
52 } // namespace path_parser 57 } // namespace path_parser
53 58
54 } // namespace policy 59 } // namespace policy
55 60
56 #endif // CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_ 61 #endif // CHROME_BROWSER_POLICY_POLICY_PATH_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698