summaryrefslogtreecommitdiffstats
path: root/net/test
diff options
context:
space:
mode:
Diffstat (limited to 'net/test')
-rw-r--r--net/test/python_utils.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/test/python_utils.cc b/net/test/python_utils.cc
index 3a1068f..13438f7 100644
--- a/net/test/python_utils.cc
+++ b/net/test/python_utils.cc
@@ -46,10 +46,10 @@ bool GetPyProtoPath(FilePath* dir) {
const FilePath kPyProto(FILE_PATH_LITERAL("pyproto"));
-#if defined(OS_MACOSX)
- // On Mac, DIR_EXE might be pointing deep into the Release/ (or Debug/)
- // directory and we can't depend on how far down it goes. So we walk upwards
- // from DIR_EXE until we find a likely looking spot.
+#if defined(OS_MACOSX) || defined(OS_CHROMEOS)
+ // On Mac and Chrome OS, DIR_EXE might be pointing deep into the Release/
+ // (or Debug/) directory and we can't depend on how far down it goes. So we
+ // walk upwards from DIR_EXE until we find a likely looking spot.
while (!file_util::DirectoryExists(generated_code_dir.Append(kPyProto))) {
FilePath parent = generated_code_dir.DirName();
if (parent == generated_code_dir) {