Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: build/android/adb_run_mojo_shell

Issue 782823003: Add ability to pass through parameter from adb_run_mojo_shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: --esa Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 optional_url=$1 7 optional_url=$1
8 parameters=$2
Nico 2014/12/09 20:02:09 If you say optional_url=shift here and then say
sky 2014/12/09 20:09:23 The parameters need to be comma separated for --es
8 9
9 adb logcat -c 10 adb logcat -c
10 adb shell am start -S \ 11 adb shell am start -S \
11 -a android.intent.action.VIEW \ 12 -a android.intent.action.VIEW \
12 -n org.chromium.mojo_shell_apk/.MojoShellActivity \ 13 -n org.chromium.mojo_shell_apk/.MojoShellActivity \
14 ${parameters:+--esa parameters "$parameters"} \
13 ${optional_url:+-d "$optional_url"} 15 ${optional_url:+-d "$optional_url"}
14 adb logcat -s MojoShellApplication MojoShellActivity chromium 16 adb logcat -s MojoShellApplication MojoShellActivity chromium
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698