Index: content/common/plugin_list_posix.cc |
diff --git a/content/common/plugin_list_posix.cc b/content/common/plugin_list_posix.cc |
index bdbd0c8a877ae5e37bcb921e1cda717fb097f295..a7a491881746b5b48982c1afbf8dc01e3ed4b754 100644 |
--- a/content/common/plugin_list_posix.cc |
+++ b/content/common/plugin_list_posix.cc |
@@ -16,6 +16,7 @@ |
#include <sys/types.h> |
#include <unistd.h> |
+#include "base/base_paths.h" |
#include "base/cpu.h" |
#include "base/file_util.h" |
#include "base/files/file_enumerator.h" |
@@ -461,7 +462,8 @@ void PluginList::GetPluginDirectories(std::vector<base::FilePath>* plugin_dirs) |
// 2) NS_USER_PLUGINS_DIR: ~/.mozilla/plugins. |
// This is a de-facto standard, so even though we're not Mozilla, let's |
// look in there too. |
- base::FilePath home = base::GetHomeDir(); |
+ base::FilePath home; |
+ PathService::Get(base::DIR_HOME, &home); |
if (!home.empty()) |
plugin_dirs->push_back(home.Append(".mozilla/plugins")); |