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

Side by Side Diff: build/android/adb_chrome_shell_command_line

Issue 189133005: Rename chromium_testshell target to chrome_shell_apk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « build/all.gyp ('k') | build/android/adb_chromium_testshell_command_line » ('j') | 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 (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 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 no flags are given, prints the current chromium test shell flags. 7 # If no flags are given, prints the current chrome shell flags.
8 # 8 #
9 # Otherwise, the given flags are used to REPLACE (not modify) the chromium 9 # Otherwise, the given flags are used to REPLACE (not modify) the chrome shell
10 # test shell flags. For example: 10 # flags. For example:
11 # adb_chromium_testshell_command_line --enable-webgl 11 # adb_chrome_shell_command_line --enable-webgl
12 # 12 #
13 # To remove all chromium test shell flags, pass an empty string for the flags: 13 # To remove all chrome shell flags, pass an empty string for the flags:
14 # adb_chromium_testshell_command_line "" 14 # adb_chrome_shell_command_line ""
15 15
16 CMD_LINE_FILE=/data/local/tmp/chromium-testshell-command-line 16 CMD_LINE_FILE=/data/local/tmp/chrome-shell-command-line
17 17
18 if [ $# -eq 0 ] ; then 18 if [ $# -eq 0 ] ; then
19 # If nothing specified, print the command line (stripping off "chromium_testsh ell") 19 # If nothing specified, print the command line (stripping off "chrome_shell")
20 tempfile=$(tempfile) 20 tempfile=$(tempfile)
21 adb pull $CMD_LINE_FILE $tempfile 2>/dev/null 21 adb pull $CMD_LINE_FILE $tempfile 2>/dev/null
22 if [ $? -eq 0 ] ; then 22 if [ $? -eq 0 ] ; then
23 rm $tempfile 23 rm $tempfile
24 adb shell cat $CMD_LINE_FILE | cut -d " " -f "2-" 2>/dev/null 24 adb shell cat $CMD_LINE_FILE | cut -d " " -f "2-" 2>/dev/null
25 fi 25 fi
26 elif [ $# -eq 1 ] && [ "$1" = '' ] ; then 26 elif [ $# -eq 1 ] && [ "$1" = '' ] ; then
27 # If given an empty string, delete the command line. 27 # If given an empty string, delete the command line.
28 set -x 28 set -x
29 adb shell rm $CMD_LINE_FILE >/dev/null 29 adb shell rm $CMD_LINE_FILE >/dev/null
30 else 30 else
31 # Else set it. 31 # Else set it.
32 set -x 32 set -x
33 adb shell "echo 'chromium_testshell $*' > $CMD_LINE_FILE" 33 adb shell "echo 'chrome_shell $*' > $CMD_LINE_FILE"
34 # Prevent other apps from modifying flags -- this can create security issues. 34 # Prevent other apps from modifying flags -- this can create security issues.
35 adb shell chmod 0664 $CMD_LINE_FILE 35 adb shell chmod 0664 $CMD_LINE_FILE
36 fi 36 fi
37 37
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | build/android/adb_chromium_testshell_command_line » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698