Convert the enable-dart-profiling to a shell argument in SkyActivity. (flutter/engine#3292)

This commit is contained in:
Chinmay Garde 2016-12-05 15:12:48 -08:00 committed by GitHub
parent ea4e307218
commit 7764bbac05

View File

@ -34,6 +34,9 @@ public class SkyActivity extends Activity {
if (intent.getBooleanExtra("start-paused", false)) {
args.add("--start-paused");
}
if (intent.getBooleanExtra("enable-dart-profiling", false)) {
args.add("--enable-dart-profiling");
}
if (!args.isEmpty()) {
String[] argsArray = new String[args.size()];
return args.toArray(argsArray);