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

Unified Diff: chromeos/chromeos_paths.cc

Issue 2441653003: Enable fetching of admin policies for login screen apps (Closed)
Patch Set: Created 4 years, 2 months 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
Index: chromeos/chromeos_paths.cc
diff --git a/chromeos/chromeos_paths.cc b/chromeos/chromeos_paths.cc
index 58c4f20a41fff39836ad3e8531a390345b8e2e3b..0f1bcfc81e1d4bbec26c6f19e330197d98292738 100644
--- a/chromeos/chromeos_paths.cc
+++ b/chromeos/chromeos_paths.cc
@@ -56,6 +56,9 @@ const base::FilePath::CharType kDeviceColorProfileDirectory[] =
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:
@@ -97,6 +100,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;
}
@@ -146,6 +152,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

Powered by Google App Engine
This is Rietveld 408576698