diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-22 23:28:05 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-22 23:28:05 +0000 |
commit | 1c657854c20ee288f8812c707d4bf4fcfecb7495 (patch) | |
tree | 2d157e936beea91a3f9ad2385999ad27804ec5d4 /chrome/common | |
parent | a1170ed12a730f79d4224779b90e35923c7bb729 (diff) | |
download | chromium_src-1c657854c20ee288f8812c707d4bf4fcfecb7495.zip chromium_src-1c657854c20ee288f8812c707d4bf4fcfecb7495.tar.gz chromium_src-1c657854c20ee288f8812c707d4bf4fcfecb7495.tar.bz2 |
bsd: refactor XDG bits of linux_util into a shared file.
This allows the shared code to build on the BSDs without
them needing to build _linux files.
Review URL: http://codereview.chromium.org/1701005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_paths_linux.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/common/chrome_paths_linux.cc b/chrome/common/chrome_paths_linux.cc index 7568179..32a9925 100644 --- a/chrome/common/chrome_paths_linux.cc +++ b/chrome/common/chrome_paths_linux.cc @@ -5,8 +5,9 @@ #include "chrome/common/chrome_paths_internal.h" #include "base/env_var.h" -#include "base/linux_util.h" +#include "base/file_util.h" #include "base/scoped_ptr.h" +#include "base/xdg_util.h" namespace chrome { @@ -51,7 +52,7 @@ bool GetUserDownloadsDirectory(FilePath* result) { scoped_ptr<base::EnvVarGetter> env(base::EnvVarGetter::Create()); *result = base::GetXDGUserDirectory(env.get(), "DOWNLOAD", "Downloads"); - FilePath home = base::GetHomeDir(env.get()); + FilePath home = file_util::GetHomeDir(); if (*result == home) { *result = home.Append("Downloads"); return true; |