crosperf: refactor chrome src search

Replace multiple levels of if/else of the chrome src search with a loop.
Add a missing search path .cache/distfiles/chrome-src.
Add checks for the Chrome source location and raise RuntimeError if it
does not exist.

TEST=Tested with crosperf and distfiles/target/chrome-src-internal.

Change-Id: I66dd7c802a4e80238e4d625586198bdf573621dc
Reviewed-by: Manoj Gupta <>
Reviewed-by: Caroline Tice <>
Tested-by: Denis Nikitin <>
Commit-Queue: George Burgess <>
1 file changed