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

Side by Side Diff: build/android/adb_kill_blimp_client

Issue 1364143002: Move ChromeCommandLineInitUtil to base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_test
Patch Set: Made sure we actually initialize the command line Created 5 years, 2 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
« no previous file with comments | « build/android/adb_gdb_blimp_client ('k') | build/android/adb_run_blimp_client » ('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 2015 The Chromium Authors. All rights reserved. 3 # Copyright 2015 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 # Kill a running instance of ChromePublic. 7 # Kill a running instance of Blimp.
8 # 8 #
9 # Assumes you have sourced the build/android/envsetup.sh script. 9 # Assumes you have sourced the build/android/envsetup.sh script.
10 10
11 SHELL_PID_LINES=$(adb shell ps | grep -w 'org.chromium.chrome') 11 SHELL_PID_LINES=$(adb shell ps | grep -w 'org.chromium.blimp')
12 VAL=$(echo "$SHELL_PID_LINES" | wc -l) 12 VAL=$(echo "$SHELL_PID_LINES" | wc -l)
13 if [ $VAL -lt 1 ] ; then 13 if [ $VAL -lt 1 ] ; then
14 echo "Not running ChromePublic." 14 echo "Not running Blimp."
15 else 15 else
16 SHELL_PID=$(echo $SHELL_PID_LINES | awk '{print $2}') 16 SHELL_PID=$(echo $SHELL_PID_LINES | awk '{print $2}')
17 if [ "$SHELL_PID" != "" ] ; then 17 if [ "$SHELL_PID" != "" ] ; then
18 set -x 18 set -x
19 adb shell kill $SHELL_PID 19 adb shell kill $SHELL_PID
20 set - 20 set -
21 else 21 else
22 echo "ChromePublic does not appear to be running." 22 echo "Blimp does not appear to be running."
23 fi 23 fi
24 fi 24 fi
OLDNEW
« no previous file with comments | « build/android/adb_gdb_blimp_client ('k') | build/android/adb_run_blimp_client » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698