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

Unified Diff: chrome/common/chrome_paths.cc

Issue 10392094: Add PathService::Get(chrome::DIR_USER_PICTURES). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/common/chrome_paths.cc
===================================================================
--- chrome/common/chrome_paths.cc (revision 136931)
+++ chrome/common/chrome_paths.cc (working copy)
@@ -145,7 +145,7 @@
FilePath cur;
switch (key) {
case chrome::DIR_USER_DATA: {
- CommandLine *cmd_line = CommandLine::ForCurrentProcess();
+ CommandLine* cmd_line = CommandLine::ForCurrentProcess();
if (cmd_line) {
// In some tests this check might be happening after the CommandLine
// object has been destroyed. This is DCHECKED but in release builds
@@ -165,6 +165,10 @@
return false;
create_dir = true;
break;
+ case chrome::DIR_USER_PICTURES:
+ if (!GetUserPicturesDirectory(&cur))
+ return false;
+ break;
case chrome::DIR_DEFAULT_DOWNLOADS_SAFE:
#if defined(OS_WIN) || defined(OS_LINUX)
if (!GetUserDownloadsDirectorySafe(&cur))

Powered by Google App Engine
This is Rietveld 408576698