From 51bc6a33b9cf38ee0c89124a447b2ed4e0296e93 Mon Sep 17 00:00:00 2001 From: sky Date: Tue, 9 Dec 2014 12:50:52 -0800 Subject: [PATCH] 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 --- android/adb_run_mojo_shell | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/adb_run_mojo_shell b/android/adb_run_mojo_shell index 18e796d2c..b585e4a71 100755 --- a/android/adb_run_mojo_shell +++ b/android/adb_run_mojo_shell @@ -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