| Index: build/android/adb_chrome_shell_command_line
|
| diff --git a/build/android/adb_chrome_shell_command_line b/build/android/adb_chrome_shell_command_line
|
| index 1e2bd3820d3e4f485db572229870373c7ef6a59a..750f90603657078a8c8d9f24d1e98a63f5da3ba0 100755
|
| --- a/build/android/adb_chrome_shell_command_line
|
| +++ b/build/android/adb_chrome_shell_command_line
|
| @@ -13,25 +13,8 @@
|
| # To remove all chrome shell flags, pass an empty string for the flags:
|
| # adb_chrome_shell_command_line ""
|
|
|
| +. $(dirname $0)/adb_command_line_functions.sh
|
| CMD_LINE_FILE=/data/local/tmp/chrome-shell-command-line
|
| -
|
| -if [ $# -eq 0 ] ; then
|
| - # If nothing specified, print the command line (stripping off "chrome_shell")
|
| - tempfile=$(tempfile)
|
| - adb pull $CMD_LINE_FILE $tempfile 2>/dev/null
|
| - if [ $? -eq 0 ] ; then
|
| - rm $tempfile
|
| - adb shell cat $CMD_LINE_FILE | cut -d " " -f "2-" 2>/dev/null
|
| - fi
|
| -elif [ $# -eq 1 ] && [ "$1" = '' ] ; then
|
| - # If given an empty string, delete the command line.
|
| - set -x
|
| - adb shell rm $CMD_LINE_FILE >/dev/null
|
| -else
|
| - # Else set it.
|
| - set -x
|
| - adb shell "echo 'chrome_shell $*' > $CMD_LINE_FILE"
|
| - # Prevent other apps from modifying flags -- this can create security issues.
|
| - adb shell chmod 0664 $CMD_LINE_FILE
|
| -fi
|
| +REQUIRES_SU=0
|
| +set_command_line "$@"
|
|
|
|
|