summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths_linux.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-20 00:28:35 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-20 00:28:35 +0000
commit6a657d263085ed48a465d72ae6050d0f26a740ec (patch)
tree2a343606b3e30c9839baba143c9a924911ecb77a /chrome/common/chrome_paths_linux.cc
parentdad4661819c280d4468548864442face8082b0b2 (diff)
downloadchromium_src-6a657d263085ed48a465d72ae6050d0f26a740ec.zip
chromium_src-6a657d263085ed48a465d72ae6050d0f26a740ec.tar.gz
chromium_src-6a657d263085ed48a465d72ae6050d0f26a740ec.tar.bz2
ChromeOS: Don't report the presence of a user pictures directory.
BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10577026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143094 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths_linux.cc')
-rw-r--r--chrome/common/chrome_paths_linux.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths_linux.cc b/chrome/common/chrome_paths_linux.cc
index b6bcc54..adfcca6 100644
--- a/chrome/common/chrome_paths_linux.cc
+++ b/chrome/common/chrome_paths_linux.cc
@@ -101,6 +101,10 @@ bool GetUserDownloadsDirectory(FilePath* result) {
// We respect the user's preferred pictures location, unless it is
// ~ or their desktop directory, in which case we default to ~/Pictures.
bool GetUserPicturesDirectory(FilePath* result) {
+#if defined(OS_CHROMEOS)
+ // No local Pictures directory on CrOS.
+ return false;
+#else
*result = GetXDGUserDirectory("PICTURES", kPicturesDir);
FilePath home = file_util::GetHomeDir();
@@ -114,6 +118,7 @@ bool GetUserPicturesDirectory(FilePath* result) {
*result = home.Append(kPicturesDir);
return true;
+#endif
}
bool GetUserDesktop(FilePath* result) {