Commit 33a46dfe authored by Stephen Martinis's avatar Stephen Martinis Committed by Commit Bot

traffic annotation: Use checked in version of gn

Bug: 731558
Change-Id: I4d3eaf86139e140df0c465edfdc84756a490fa38
Reviewed-on: https://chromium-review.googlesource.com/896954Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Commit-Queue: Stephen Martinis <martiniss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534127}
parent b69c519b
......@@ -491,8 +491,13 @@ bool TrafficAnnotationAuditor::CheckIfCallCanBeUnannotated(
// Check if the file including this function is part of Chrome build.
const base::CommandLine::CharType* args[] = {
#if defined(OS_WIN)
FILE_PATH_LITERAL("gn.bat"),
FILE_PATH_LITERAL("buildtools/win/gn.exe"),
#elif defined(OS_MACOSX)
FILE_PATH_LITERAL("buildtools/mac/gn"),
#elif defined(OS_LINUX)
FILE_PATH_LITERAL("buildtools/linux64/gn"),
#else
// Fallback to using PATH to find gn.
FILE_PATH_LITERAL("gn"),
#endif
FILE_PATH_LITERAL("refs"),
......@@ -665,4 +670,4 @@ bool TrafficAnnotationAuditor::RunAllChecks(
}
return true;
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment