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

Unified Diff: chrome/common/importer/firefox_importer_utils_linux.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: cleanup Created 6 years, 7 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/importer/firefox_importer_utils_linux.cc
diff --git a/chrome/common/importer/firefox_importer_utils_linux.cc b/chrome/common/importer/firefox_importer_utils_linux.cc
index 71f1a267a2796b640fe117ed8cc3bc12029a16ec..081a2941bd46507b5e8a8c223e644edc186e8ad6 100644
--- a/chrome/common/importer/firefox_importer_utils_linux.cc
+++ b/chrome/common/importer/firefox_importer_utils_linux.cc
@@ -4,13 +4,17 @@
#include "chrome/common/importer/firefox_importer_utils.h"
+#include "base/base_paths.h"
#include "base/file_util.h"
+#include "base/files/file_path.h"
+#include "base/path_service.h"
base::FilePath GetProfilesINI() {
base::FilePath ini_file;
// The default location of the profile folder containing user data is
// under user HOME directory in .mozilla/firefox folder on Linux.
- base::FilePath home = base::GetHomeDir();
+ base::FilePath home;
+ PathService::Get(base::DIR_HOME, &home);
if (!home.empty()) {
ini_file = home.Append(".mozilla/firefox/profiles.ini");
}
« no previous file with comments | « chrome/common/chrome_paths_unittest.cc ('k') | chrome/test/data/extensions/api_test/file_system/open_directory/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698