Index: net/test/python_utils.cc |
diff --git a/net/test/python_utils.cc b/net/test/python_utils.cc |
index a9ac98b53171b7cad2b80d547dca9baec5719353..bf66bea93bd2e79ce2bb5ea2a4244e5bd83b3909 100644 |
--- a/net/test/python_utils.cc |
+++ b/net/test/python_utils.cc |
@@ -41,6 +41,7 @@ void AppendToPythonPath(const base::FilePath& dir) { |
namespace { |
+#if defined(OS_MACOSX) || defined(OS_CHROMEOS) |
// Search for |to_try|, rolling up the directory tree from |
// |start_dir|. If found, return true and put the path to |to_try| in |
// |out_dir|. If not, return false and leave |out_dir| untouched. |
@@ -59,6 +60,7 @@ bool TryRelativeToDir(const base::FilePath& start_dir, |
*out_dir = dir; |
return true; |
} |
+#endif // defined(OS_MACOSX) || defined(OS_CHROMEOS) |
} // namespace |