diff options
author | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-14 10:53:49 +0000 |
---|---|---|
committer | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-14 10:53:49 +0000 |
commit | 7da1221b8597f7e07b41b61618a40876378d45ab (patch) | |
tree | 45218f9ededd4ebbe60e01d2ed36c6a5754746dd /chrome/common/chrome_paths.cc | |
parent | 5711e3696056688382a3fe54f9786dcf35433772 (diff) | |
download | chromium_src-7da1221b8597f7e07b41b61618a40876378d45ab.zip chromium_src-7da1221b8597f7e07b41b61618a40876378d45ab.tar.gz chromium_src-7da1221b8597f7e07b41b61618a40876378d45ab.tar.bz2 |
Disable normal default extensions in case of managed users
Added managed users only default extensions (will be used to push policy locally)
We need such changes on Chrome OS because it is the only way to apply whitelist
but it looks like similar code makes sense for all other platforms too.
BUG=171922
TEST=manual
Review URL: https://codereview.chromium.org/12221065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r-- | chrome/common/chrome_paths.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc index baada98f..38a9bdb 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -406,6 +406,13 @@ bool PathProvider(int key, base::FilePath* result) { cur = base::FilePath(FILE_PATH_LITERAL(kDefaultAppOrderFileName)); break; #endif +#if defined(ENABLE_MANAGED_USERS) + case chrome::DIR_MANAGED_USERS_DEFAULT_APPS: + if (!PathService::Get(chrome::DIR_EXTERNAL_EXTENSIONS, &cur)) + return false; + cur = cur.Append(FILE_PATH_LITERAL("managed_users")); + break; +#endif // The following are only valid in the development environment, and // will fail if executed from an installed executable (because the // generated path won't exist). |