summaryrefslogtreecommitdiffstats
path: root/base/path_service.h
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 21:53:56 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 21:53:56 +0000
commit63ebbf2296e2ae5437f7c50892cb514d6590ba5c (patch)
tree6737fb175dc1b3c5433a3f92a8b7b5e70c6bb597 /base/path_service.h
parent8f471efe17352dd8d4831f97f5f5c03812b6f082 (diff)
downloadchromium_src-63ebbf2296e2ae5437f7c50892cb514d6590ba5c.zip
chromium_src-63ebbf2296e2ae5437f7c50892cb514d6590ba5c.tar.gz
chromium_src-63ebbf2296e2ae5437f7c50892cb514d6590ba5c.tar.bz2
Enable Enterprise enrollment on desktop builds.
This change implements some of the DBus stub methods so that enterprise enrollment works on desktop builds. That will make development of features that depend on enrollment faster for developers that use this workflow (e.g. for kiosk enterprise apps, public accounts, testing some device policies, etc). - Override some of the directories and files involved with the enrollment state - Simple stub implementation of the DBus calls involved - Write a persistent cache of the install attributes - Cleaned up the stub for user cloud policy and made them persistent too - Updated some tests This change doesn't affect production code. TBR=jochen@chromium.org BUG=240269, 367674 Review URL: https://codereview.chromium.org/258743005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267640 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/path_service.h')
-rw-r--r--base/path_service.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/base/path_service.h b/base/path_service.h
index 9759754..554eb9e 100644
--- a/base/path_service.h
+++ b/base/path_service.h
@@ -46,11 +46,18 @@ class BASE_EXPORT PathService {
// one test should not carry over to another.
static bool Override(int key, const base::FilePath& path);
- // This function does the same as PathService::Override but it takes an extra
- // parameter |create| which guides whether the directory to be overriden must
+ // This function does the same as PathService::Override but it takes extra
+ // parameters:
+ // - |is_absolute| indicates that |path| has already been expanded into an
+ // absolute path, otherwise MakeAbsoluteFilePath() will be used. This is
+ // useful to override paths that may not exist yet, since MakeAbsoluteFilePath
+ // fails for those. Note that MakeAbsoluteFilePath also expands symbolic
+ // links, even if path.IsAbsolute() is already true.
+ // - |create| guides whether the directory to be overriden must
// be created in case it doesn't exist already.
static bool OverrideAndCreateIfNeeded(int key,
const base::FilePath& path,
+ bool is_absolute,
bool create);
// To extend the set of supported keys, you can register a path provider,