| Index: chrome/browser/download/download_prefs.cc
|
| diff --git a/chrome/browser/download/download_prefs.cc b/chrome/browser/download/download_prefs.cc
|
| index 385356f158c95785333a305dd93a694d57009597..b61e5178fc2480b7e1148d90a6777d9c55ae418a 100644
|
| --- a/chrome/browser/download/download_prefs.cc
|
| +++ b/chrome/browser/download/download_prefs.cc
|
| @@ -7,6 +7,7 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "base/base_paths.h"
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| #include "base/file_util.h"
|
| @@ -47,7 +48,8 @@ namespace {
|
| // to the desktop on any platform.
|
| bool DownloadPathIsDangerous(const base::FilePath& download_path) {
|
| #if defined(OS_LINUX)
|
| - base::FilePath home_dir = base::GetHomeDir();
|
| + base::FilePath home_dir;
|
| + PathService::Get(base::DIR_HOME, &home_dir);
|
| if (download_path == home_dir) {
|
| return true;
|
| }
|
|
|