From ab6243d24737dfaa670b4c1db1d0d9380364c518 Mon Sep 17 00:00:00 2001 From: "bartfab@chromium.org" Date: Tue, 5 Nov 2013 19:11:23 +0000 Subject: Support policies referencing external data for device-local accounts This CL adds a DeviceLocalAccountExternalDataService that provides each device-local account with a DeviceLocalAccountExternalDataManager which fetches, caches and retrieves external policy data. BUG=256635 TEST=New browser test R=derat@chromium.org, joaodasilva@chromium.org Review URL: https://codereview.chromium.org/25242002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233048 0039d316-1c4b-4281-b951-d872f2087c98 --- chromeos/chromeos_paths.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'chromeos/chromeos_paths.cc') diff --git a/chromeos/chromeos_paths.cc b/chromeos/chromeos_paths.cc index 6e5f268..25174d45 100644 --- a/chromeos/chromeos_paths.cc +++ b/chromeos/chromeos_paths.cc @@ -33,9 +33,12 @@ 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[] = +const base::FilePath::CharType kDeviceLocalAccountExtensionDir[] = FILE_PATH_LITERAL("/var/cache/device_local_account_extensions"); +const base::FilePath::CharType kDeviceLocalAccountExternalDataDir[] = + FILE_PATH_LITERAL("/var/cache/device_local_account_external_policy_data"); + bool PathProvider(int key, base::FilePath* result) { switch (key) { case FILE_DEFAULT_APP_ORDER: @@ -56,8 +59,11 @@ 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); + case DIR_DEVICE_LOCAL_ACCOUNT_EXTENSIONS: + *result = base::FilePath(kDeviceLocalAccountExtensionDir); + break; + case DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA: + *result = base::FilePath(kDeviceLocalAccountExternalDataDir); break; default: return false; -- cgit v1.1