Index: base/file_util_posix.cc |
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc |
index a2dd19b97c439bd9a406af09526b6b1947b4e726..134935c271774c6511ac66fc83fd312fc1c0e1c7 100644 |
--- a/base/file_util_posix.cc |
+++ b/base/file_util_posix.cc |
@@ -24,7 +24,7 @@ |
#if defined(OS_MACOSX) |
#include <AvailabilityMacros.h> |
#include "base/mac/foundation_util.h" |
-#elif !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
+#elif !defined(OS_CHROMEOS) && defined(USE_GLIB) |
#include <glib.h> // for g_get_home_dir() |
#endif |
@@ -778,7 +778,7 @@ FilePath GetHomeDir() { |
#if defined(OS_ANDROID) |
DLOG(WARNING) << "OS_ANDROID: Home directory lookup not yet implemented."; |
-#elif !defined(OS_CHROMEOS) |
+#elif defined(USE_GLIB) && !defined(OS_CHROMEOS) |
// g_get_home_dir calls getpwent, which can fall through to LDAP calls. |
base::ThreadRestrictions::AssertIOAllowed(); |