Index: chrome/test/test_launcher_utils.cc |
diff --git a/chrome/test/test_launcher_utils.cc b/chrome/test/test_launcher_utils.cc |
index d4b16d042110329fb785f2bbe566134a6bb9ce46..759267f591959c511f9af6d0c366dd1c40c67123 100644 |
--- a/chrome/test/test_launcher_utils.cc |
+++ b/chrome/test/test_launcher_utils.cc |
@@ -67,7 +67,7 @@ bool OverrideUserDataDir(const FilePath& user_data_dir) { |
// This matches what is done in ChromeMain(). |
success = PathService::Override(chrome::DIR_USER_DATA, user_data_dir); |
-#if defined(OS_LINUX) |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) |
// Make sure the cache directory is inside our clear profile. Otherwise |
// the cache may contain data from earlier tests that could break the |
// current test. |