Add ability to pass through parameter from adb_run_mojo_shell

I would have liked the ability to pass through an array but I couldn't
see to get that to work.

BUG=none
TEST=none
R=qsr@chromium.org

Review URL: https://codereview.chromium.org/782823003

Cr-Original-Commit-Position: refs/heads/master@{#307546}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 70aa001db4905b2c1ec92043c1572fd1287593f9
This commit is contained in:
sky 2014-12-09 12:50:52 -08:00 коммит произвёл Commit bot
Родитель 667da93a58
Коммит 51bc6a33b9
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -5,10 +5,12 @@
# found in the LICENSE file.
optional_url=$1
parameters=$2
adb logcat -c
adb shell am start -S \
-a android.intent.action.VIEW \
-n org.chromium.mojo_shell_apk/.MojoShellActivity \
${parameters:+--esa parameters "$parameters"} \
${optional_url:+-d "$optional_url"}
adb logcat -s MojoShellApplication MojoShellActivity chromium