Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Unified Diff: chromeos/chromeos_paths.cc

Issue 25242002: Support policies referencing external data for device-local accounts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/chromeos_paths.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/chromeos_paths.cc
diff --git a/chromeos/chromeos_paths.cc b/chromeos/chromeos_paths.cc
index 6e5f268ed108da3518140678f3415677d9c4514b..25174d45ddd1a3f534aa46bafad46209ed7767e6 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;
« no previous file with comments | « chromeos/chromeos_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698