OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/chromeos_paths.h" | 5 #include "chromeos/chromeos_paths.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 *result = base::FilePath(kDeviceLocalAccountExtensionDir); | 77 *result = base::FilePath(kDeviceLocalAccountExtensionDir); |
78 break; | 78 break; |
79 case DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA: | 79 case DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA: |
80 *result = base::FilePath(kDeviceLocalAccountExternalDataDir); | 80 *result = base::FilePath(kDeviceLocalAccountExternalDataDir); |
81 break; | 81 break; |
82 case DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY: | 82 case DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY: |
83 *result = base::FilePath(kDeviceLocalAccountComponentPolicy); | 83 *result = base::FilePath(kDeviceLocalAccountComponentPolicy); |
84 break; | 84 break; |
85 case DIR_DEVICE_COLOR_CALIBRATION_PROFILES: | 85 case DIR_DEVICE_COLOR_CALIBRATION_PROFILES: |
86 *result = base::FilePath(kDeviceColorProfileDirectory); | 86 *result = base::FilePath(kDeviceColorProfileDirectory); |
| 87 break; |
87 default: | 88 default: |
88 return false; | 89 return false; |
89 } | 90 } |
90 return true; | 91 return true; |
91 } | 92 } |
92 | 93 |
93 } // namespace | 94 } // namespace |
94 | 95 |
95 void RegisterPathProvider() { | 96 void RegisterPathProvider() { |
96 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); | 97 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); |
(...skipping 29 matching lines...) Expand all Loading... |
126 parent.AppendASCII("stub_device_local_account_extensions")); | 127 parent.AppendASCII("stub_device_local_account_extensions")); |
127 PathService::Override( | 128 PathService::Override( |
128 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, | 129 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, |
129 parent.AppendASCII("stub_device_local_account_external_data")); | 130 parent.AppendASCII("stub_device_local_account_external_data")); |
130 PathService::Override( | 131 PathService::Override( |
131 DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY, | 132 DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY, |
132 parent.AppendASCII("stub_device_local_account_component_policy")); | 133 parent.AppendASCII("stub_device_local_account_component_policy")); |
133 } | 134 } |
134 | 135 |
135 } // namespace chromeos | 136 } // namespace chromeos |
OLD | NEW |