summaryrefslogtreecommitdiffstats
path: root/chromeos/chromeos_paths.cc
diff options
context:
space:
mode:
authorjennyz <jennyz@chromium.org>2015-09-03 13:59:27 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-03 21:00:03 +0000
commit26b7f4356b905831f152cebb28c08a16ad72d80c (patch)
tree3a0acf791ae608ab0601bfa412405ee82c9e933a /chromeos/chromeos_paths.cc
parentfb833eca8993b1210f530fcfa09cd3e72d2d45fe (diff)
downloadchromium_src-26b7f4356b905831f152cebb28c08a16ad72d80c.zip
chromium_src-26b7f4356b905831f152cebb28c08a16ad72d80c.tar.gz
chromium_src-26b7f4356b905831f152cebb28c08a16ad72d80c.tar.bz2
Implement kiosk multiple apps feature. This includes:
1. Add new manifest keys in the manifest file of the primary kiosk app to configure secondary kiosk apps. 2. Implement the work flow for primary kiosk to download and install secondary apps before its first time launch. 3. Expand FakeCWS to support multiple kiosk apps' update check. 4. Move the hard coded local extension cache director to chromeos path service so that it can be created in testing environment. BUG=510217 TBR=stevenjb Review URL: https://codereview.chromium.org/1301323005 Cr-Commit-Position: refs/heads/master@{#347237}
Diffstat (limited to 'chromeos/chromeos_paths.cc')
-rw-r--r--chromeos/chromeos_paths.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromeos/chromeos_paths.cc b/chromeos/chromeos_paths.cc
index 3132c32..64005cc 100644
--- a/chromeos/chromeos_paths.cc
+++ b/chromeos/chromeos_paths.cc
@@ -47,6 +47,9 @@ const base::FilePath::CharType kDeviceLocalAccountExternalDataDir[] =
const base::FilePath::CharType kDeviceLocalAccountComponentPolicy[] =
FILE_PATH_LITERAL("/var/cache/device_local_account_component_policy");
+const base::FilePath::CharType kDeviceExtensionLocalCache[] =
+ FILE_PATH_LITERAL("/var/cache/external_cache");
+
const base::FilePath::CharType kDeviceColorProfileDirectory[] =
FILE_PATH_LITERAL("/usr/share/color/icc");
@@ -85,6 +88,9 @@ bool PathProvider(int key, base::FilePath* result) {
case DIR_DEVICE_COLOR_CALIBRATION_PROFILES:
*result = base::FilePath(kDeviceColorProfileDirectory);
break;
+ case DIR_DEVICE_EXTENSION_LOCAL_CACHE:
+ *result = base::FilePath(kDeviceExtensionLocalCache);
+ break;
default:
return false;
}
@@ -131,6 +137,9 @@ void RegisterStubPathOverrides(const base::FilePath& stubs_dir) {
PathService::Override(
DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY,
parent.AppendASCII("stub_device_local_account_component_policy"));
+ PathService::Override(
+ DIR_DEVICE_EXTENSION_LOCAL_CACHE,
+ parent.AppendASCII("stub_device_local_extension_cache"));
}
} // namespace chromeos