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

Unified Diff: content/common/plugin_list_posix.cc

Issue 200473002: Move all callers of GetHomeDir() to PathService::Get(base::DIR_HOME). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move subprocess homedir override to ChromeContentBrowserClient/ChromeMainDelegate Created 6 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: 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"));

Powered by Google App Engine
This is Rietveld 408576698