diff options
author | bartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-21 21:08:51 +0000 |
---|---|---|
committer | bartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-21 21:08:51 +0000 |
commit | af984884c2d0828659ab2ff9f2e95d4c9b842759 (patch) | |
tree | 999cd534ebabe0790e6777eb0a6124026bfaedd4 /chromeos/chromeos_paths.cc | |
parent | d8299c246c26c17801d36a741eb53a7abeadac90 (diff) | |
download | chromium_src-af984884c2d0828659ab2ff9f2e95d4c9b842759.zip chromium_src-af984884c2d0828659ab2ff9f2e95d4c9b842759.tar.gz chromium_src-af984884c2d0828659ab2ff9f2e95d4c9b842759.tar.bz2 |
Cache force-installed apps/extensions in device-local accounts
This CL adds the DeviceLocalAccountExternalPolicyLoader, a replacement for
the ExternalPolicyLoader that caches force-installed apps/extensions,
allowing them to be installed offline. The caches for individual accounts
are managed by the DeviceLocalAccountPolicyService which makes sure to
remove obsolete cache directories.
BUG=287802
TEST=Full coverage with new browser and unit tests
NOTRY=true
Review URL: https://codereview.chromium.org/27548004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/chromeos_paths.cc')
-rw-r--r-- | chromeos/chromeos_paths.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chromeos/chromeos_paths.cc b/chromeos/chromeos_paths.cc index 10dff74..6e5f268 100644 --- a/chromeos/chromeos_paths.cc +++ b/chromeos/chromeos_paths.cc @@ -33,6 +33,9 @@ const base::FilePath::CharType kUptimeFileName[] = const base::FilePath::CharType kUpdateRebootNeededUptimeFile[] = FILE_PATH_LITERAL("/var/run/chrome/update_reboot_needed_uptime"); +const base::FilePath::CharType kDeviceLocalAccountCacheDir[] = + FILE_PATH_LITERAL("/var/cache/device_local_account_extensions"); + bool PathProvider(int key, base::FilePath* result) { switch (key) { case FILE_DEFAULT_APP_ORDER: @@ -53,6 +56,9 @@ bool PathProvider(int key, base::FilePath* result) { case FILE_UPDATE_REBOOT_NEEDED_UPTIME: *result = base::FilePath(kUpdateRebootNeededUptimeFile); break; + case DIR_DEVICE_LOCAL_ACCOUNT_CACHE: + *result = base::FilePath(kDeviceLocalAccountCacheDir); + break; default: return false; } |