OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 2013 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 if [ $# -gt 0 ] ; then | 7 optional_url=$1 |
8 INTENT_ARGS="-d \"$1\"" # e.g. a URL | |
9 fi | |
10 | 8 |
11 adb logcat -c | 9 adb logcat -c |
12 adb shell am start -S \ | 10 adb shell am start -S \ |
13 -a android.intent.action.VIEW \ | 11 -a android.intent.action.VIEW \ |
14 -n org.chromium.mojo_shell_apk/.MojoShellActivity \ | 12 -n org.chromium.mojo_shell_apk/.MojoShellActivity \ |
15 $INTENT_ARGS | 13 ${optional_url:+-d "$optional_url"} |
16 adb logcat -s MojoShellApplication MojoShellActivity chromium | 14 adb logcat -s MojoShellApplication MojoShellActivity chromium |
OLD | NEW |