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

Unified Diff: chrome/common/chrome_paths_linux.cc

Issue 1701005: bsd: refactor XDG bits of linux_util into a shared file. (Closed)
Patch Set: Created 10 years, 8 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_linux.cc
diff --git a/chrome/common/chrome_paths_linux.cc b/chrome/common/chrome_paths_linux.cc
index 7568179375f93c98fe691fba5733285c6e0efcfd..32a9925d57f3bf8df562659d3d6182d918571e13 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;

Powered by Google App Engine
This is Rietveld 408576698