Index: chrome/browser/extensions/api/file_system/file_system_apitest.cc |
diff --git a/chrome/browser/extensions/api/file_system/file_system_apitest.cc b/chrome/browser/extensions/api/file_system/file_system_apitest.cc |
index 4cdbe4ff503610119aeae3d8c7cd26ed8501fb66..0bc334da3a5cf8df4fe9f09d813f275b431ab32d 100644 |
--- a/chrome/browser/extensions/api/file_system/file_system_apitest.cc |
+++ b/chrome/browser/extensions/api/file_system/file_system_apitest.cc |
@@ -48,9 +48,14 @@ IN_PROC_BROWSER_TEST_F(FileSystemApiTest, FileSystemApiGetDisplayPath) { |
<< message_; |
} |
-#if defined(OS_WIN) |
+#if defined(OS_WIN) || defined(OS_POSIX) |
IN_PROC_BROWSER_TEST_F(FileSystemApiTest, FileSystemApiGetDisplayPathPrettify) { |
- ASSERT_TRUE(PathService::OverrideAndCreateIfNeeded(base::DIR_PROFILE, |
+#if defined(OS_WIN) |
+ int override = base::DIR_PROFILE; |
+#elif defined(OS_POSIX) |
+ int override = base::DIR_HOME; |
+#endif |
+ ASSERT_TRUE(PathService::OverrideAndCreateIfNeeded(override, |
test_root_folder_, false)); |
FilePath test_file = test_root_folder_.AppendASCII("gold.txt"); |