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

Unified Diff: build/android/adb_android_webview_command_line

Issue 1180693002: Update from https://crrev.com/333737 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/all.gyp ('k') | build/android/adb_chrome_public_command_line » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/adb_android_webview_command_line
diff --git a/build/android/adb_android_webview_command_line b/build/android/adb_android_webview_command_line
index 947cfb1eed7c39ed43a9c7dc4e8284016c3140d8..791e27069e2b7c6806179d151c90fadc569d1e47 100755
--- a/build/android/adb_android_webview_command_line
+++ b/build/android/adb_android_webview_command_line
@@ -13,25 +13,8 @@
# To remove all content shell flags, pass an empty string for the flags:
# adb_android_webview_command_line ""
+. $(dirname $0)/adb_command_line_functions.sh
CMD_LINE_FILE=/data/local/tmp/android-webview-command-line
-
-if [ $# -eq 0 ] ; then
- # If nothing specified, print the command line (stripping off "content_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 'android_webview $*' > $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 "$@"
« no previous file with comments | « build/all.gyp ('k') | build/android/adb_chrome_public_command_line » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698