| Index: base/nix/mime_util_xdg.cc
|
| diff --git a/base/nix/mime_util_xdg.cc b/base/nix/mime_util_xdg.cc
|
| index 51d0900706ae52ea9b284e86c5a27e6826f656dc..91ed381c4d566943d49786814c544a304d17b2c2 100644
|
| --- a/base/nix/mime_util_xdg.cc
|
| +++ b/base/nix/mime_util_xdg.cc
|
| @@ -9,6 +9,7 @@
|
| #include <map>
|
| #include <vector>
|
|
|
| +#include "base/base_paths.h"
|
| #include "base/environment.h"
|
| #include "base/file_util.h"
|
| #include "base/lazy_instance.h"
|
| @@ -16,6 +17,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/singleton.h"
|
| #include "base/nix/xdg_util.h"
|
| +#include "base/path_service.h"
|
| #include "base/strings/string_split.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/synchronization/lock.h"
|
| @@ -413,7 +415,8 @@ void AddXDGDataDir(const FilePath& dir) {
|
|
|
| // Add all the xdg icon directories.
|
| void InitIconDir() {
|
| - FilePath home = GetHomeDir();
|
| + FilePath home;
|
| + PathService::Get(base::DIR_HOME, &home);
|
| if (!home.empty()) {
|
| FilePath legacy_data_dir(home);
|
| legacy_data_dir = legacy_data_dir.AppendASCII(".icons");
|
|
|