Chromium Code Reviews| Index: chrome/browser/extensions/api/file_system/file_system_api.cc |
| =================================================================== |
| --- chrome/browser/extensions/api/file_system/file_system_api.cc (revision 252098) |
| +++ chrome/browser/extensions/api/file_system/file_system_api.cc (working copy) |
| @@ -246,6 +246,16 @@ |
| base::CreateFilePathValue(path)); |
| } |
| +std::vector<base::FilePath> GetGrayListedDirectories() { |
|
vandebo (ex-Chrome)
2014/02/20 23:00:23
It looks like FileSystemApi doesn't use your new f
Lei Zhang
2014/02/20 23:04:52
|kGraylistedPaths| is in here. We may want to move
|
| + std::vector<base::FilePath> graylisted_directories; |
| + for (size_t i = 0; i < arraysize(kGraylistedPaths); ++i) { |
| + base::FilePath graylisted_path; |
| + if (PathService::Get(kGraylistedPaths[i], &graylisted_path)) |
| + graylisted_directories.push_back(graylisted_path); |
| + } |
| + return graylisted_directories; |
| +} |
| + |
| } // namespace file_system_api |
| bool FileSystemGetDisplayPathFunction::RunImpl() { |