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 | |
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')
-rw-r--r-- | chromeos/chromeos_paths.cc | 6 | ||||
-rw-r--r-- | chromeos/chromeos_paths.h | 3 |
2 files changed, 9 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; } diff --git a/chromeos/chromeos_paths.h b/chromeos/chromeos_paths.h index d78d316..0627ded 100644 --- a/chromeos/chromeos_paths.h +++ b/chromeos/chromeos_paths.h @@ -27,6 +27,9 @@ enum { // store the uptime at which an update // became necessary. The file should be // cleared on boot. + DIR_DEVICE_LOCAL_ACCOUNT_CACHE, // Directory under which a cache of + // force-installed extensions is maintained + // for each device-local account. PATH_END }; |