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

Unified Diff: chromeos/chromeos_paths.cc

Issue 341043005: Wire up component cloud policy to device local accounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 6 years, 6 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
« chromeos/chromeos_paths.h ('K') | « 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 a9963affe335654e38df140c71d496dfbebd4af2..f629c45c1773201a64f70ccccbd7cd9c3b5801b1 100644
--- a/chromeos/chromeos_paths.cc
+++ b/chromeos/chromeos_paths.cc
@@ -41,6 +41,9 @@ const base::FilePath::CharType kDeviceLocalAccountExtensionDir[] =
const base::FilePath::CharType kDeviceLocalAccountExternalDataDir[] =
FILE_PATH_LITERAL("/var/cache/device_local_account_external_policy_data");
+const base::FilePath::CharType kDeviceLocalAccountComponentPolicy[] =
+ FILE_PATH_LITERAL("/var/cache/device_local_account_component_policy");
+
bool PathProvider(int key, base::FilePath* result) {
switch (key) {
case FILE_DEFAULT_APP_ORDER:
@@ -67,6 +70,9 @@ bool PathProvider(int key, base::FilePath* result) {
case DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA:
*result = base::FilePath(kDeviceLocalAccountExternalDataDir);
break;
+ case DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY:
+ *result = base::FilePath(kDeviceLocalAccountComponentPolicy);
+ break;
default:
return false;
}
@@ -99,6 +105,15 @@ void RegisterStubPathOverrides(const base::FilePath& stubs_dir) {
parent.AppendASCII("stub_install_attributes.pb"),
is_absolute,
create);
+ PathService::Override(
+ DIR_DEVICE_LOCAL_ACCOUNT_EXTENSIONS,
+ parent.AppendASCII("stub_device_local_account_extensions"));
+ PathService::Override(
+ DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA,
+ parent.AppendASCII("stub_device_local_account_external_data"));
+ PathService::Override(
+ DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY,
+ parent.AppendASCII("stub_device_local_account_component_policy"));
}
} // namespace chromeos
« chromeos/chromeos_paths.h ('K') | « chromeos/chromeos_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698