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

Unified Diff: chromeos/chromeos_paths.cc

Issue 2441653003: Enable fetching of admin policies for login screen apps (Closed)
Patch Set: Rebase Created 4 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') | components/policy/core/common/cloud/cloud_policy_manager.h » ('j') | 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 22b56bb49ef87c9bc2a4b4a34abe110e02c736f0..bdb3fa9c1f5997be3f72c058967e0c9e28b46379 100644
--- a/chromeos/chromeos_paths.cc
+++ b/chromeos/chromeos_paths.cc
@@ -53,6 +53,9 @@ const base::FilePath::CharType kDeviceDisplayProfileDirectory[] =
const base::FilePath::CharType kDeviceExtensionLocalCache[] =
FILE_PATH_LITERAL("/var/cache/external_cache");
+const base::FilePath::CharType kSigninProfileComponentPolicy[] =
+ FILE_PATH_LITERAL("/var/cache/signin_profile_component_policy");
+
bool PathProvider(int key, base::FilePath* result) {
switch (key) {
case FILE_DEFAULT_APP_ORDER:
@@ -91,6 +94,9 @@ bool PathProvider(int key, base::FilePath* result) {
case DIR_DEVICE_EXTENSION_LOCAL_CACHE:
*result = base::FilePath(kDeviceExtensionLocalCache);
break;
+ case DIR_SIGNIN_PROFILE_COMPONENT_POLICY:
+ *result = base::FilePath(kSigninProfileComponentPolicy);
+ break;
default:
return false;
}
@@ -140,6 +146,9 @@ void RegisterStubPathOverrides(const base::FilePath& stubs_dir) {
PathService::Override(
DIR_DEVICE_EXTENSION_LOCAL_CACHE,
parent.AppendASCII("stub_device_local_extension_cache"));
+ PathService::Override(
+ DIR_SIGNIN_PROFILE_COMPONENT_POLICY,
+ parent.AppendASCII("stub_signin_profile_component_policy"));
}
} // namespace chromeos
« no previous file with comments | « chromeos/chromeos_paths.h ('k') | components/policy/core/common/cloud/cloud_policy_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698