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

Unified Diff: chrome/common/chrome_paths.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
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | chrome/common/chrome_paths_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths.cc
===================================================================
--- chrome/common/chrome_paths.cc (revision 253526)
+++ chrome/common/chrome_paths.cc (working copy)
@@ -459,6 +459,20 @@
return false;
break;
}
+ case chrome::DIR_USER_LIBRARY: {
+ if (!GetUserLibraryDirectory(&cur))
+ return false;
+ if (!base::PathExists(cur)) // We don't want to create this.
+ return false;
+ break;
+ }
+ case chrome::DIR_USER_APPLICATIONS: {
+ if (!GetUserApplicationsDirectory(&cur))
+ return false;
+ if (!base::PathExists(cur)) // We don't want to create this.
+ return false;
+ break;
+ }
#endif
#if defined(OS_CHROMEOS) || (defined(OS_MACOSX) && !defined(OS_IOS))
case chrome::DIR_USER_EXTERNAL_EXTENSIONS: {
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | chrome/common/chrome_paths_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698