roll libyuv to r1450 from r1444. Adds direct YUY2ToNV12 and UYVYToNV12 conversions...
[chromium-blink-merge.git] / build / android / adb_kill_chrome_shell
blob2b63c9af3d24af629ab42222fdbf885bdd4cd433
1 #!/bin/bash
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
5 # found in the LICENSE file.
7 # Kill a running chrome shell.
9 # Assumes you have sourced the build/android/envsetup.sh script.
11 SHELL_PID_LINES=$(adb shell ps | grep ' org.chromium.chrome.shell')
12 VAL=$(echo "$SHELL_PID_LINES" | wc -l)
13 if [ $VAL -lt 1 ] ; then
14 echo "Not running Chrome shell."
15 else
16 SHELL_PID=$(echo $SHELL_PID_LINES | awk '{print $2}')
17 if [ "$SHELL_PID" != "" ] ; then
18 set -x
19 adb shell kill $SHELL_PID
20 set -
21 else
22 echo "Chrome shell does not appear to be running."