Merge pull request #4331 from eseidelGoogle/infra_is_bot

Don't send usage information on Chrome infra bots
This commit is contained in:
Eric Seidel
2016-06-02 14:56:51 -07:00

View File

@@ -13,7 +13,9 @@ bool get isRunningOnBot {
// https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
return
Platform.environment['TRAVIS'] == 'true' ||
Platform.environment['CONTINUOUS_INTEGRATION'] == 'true';
Platform.environment['CONTINUOUS_INTEGRATION'] == 'true' ||
// CHORME_HEADLESS is one property set on Flutter's Chrome Infra bots.
Platform.environment['CHORME_HEADLESS'] == '1';
}
String hex(List<int> bytes) {