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