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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.cc

Issue 173853007: Media Galleries: Prune uninteresting folders when scanning. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 6 years, 10 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: chrome/browser/extensions/api/file_system/file_system_api.cc
===================================================================
--- chrome/browser/extensions/api/file_system/file_system_api.cc (revision 253526)
+++ chrome/browser/extensions/api/file_system/file_system_api.cc (working copy)
@@ -246,6 +246,16 @@
base::CreateFilePathValue(path));
}
+std::vector<base::FilePath> GetGrayListedDirectories() {
+ 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() {
« no previous file with comments | « chrome/browser/extensions/api/file_system/file_system_api.h ('k') | chrome/browser/media_galleries/media_folder_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698