| Index: chrome/browser/importer/firefox_importer_utils_linux.cc
|
| diff --git a/chrome/browser/importer/firefox_importer_utils_linux.cc b/chrome/browser/importer/firefox_importer_utils_linux.cc
|
| index cb815dc431ade65e65b30db8b44f2ac7a2bf6058..eeefd38f2bbb6eb493ba60d2d87e8d4fe62ff34d 100644
|
| --- a/chrome/browser/importer/firefox_importer_utils_linux.cc
|
| +++ b/chrome/browser/importer/firefox_importer_utils_linux.cc
|
| @@ -10,9 +10,9 @@ FilePath GetProfilesINI() {
|
| FilePath ini_file;
|
| // The default location of the profile folder containing user data is
|
| // under user HOME directory in .mozilla/firefox folder on Linux.
|
| - const char *home = getenv("HOME");
|
| - if (home && home[0]) {
|
| - ini_file = FilePath(home).Append(".mozilla/firefox/profiles.ini");
|
| + FilePath home = file_util::GetHomeDir();
|
| + if (!home.empty()) {
|
| + ini_file = home.Append(".mozilla/firefox/profiles.ini");
|
| }
|
| if (file_util::PathExists(ini_file))
|
| return ini_file;
|
|
|