11e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#!/bin/bash 21e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# 31e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Copyright 2013 The Chromium Authors. All rights reserved. 41e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be 51e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)# found in the LICENSE file. 61e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) 71e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)if [ $# -gt 0 ] ; then 81e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) INTENT_ARGS="-d \"$1\"" # e.g. a URL 91e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)fi 101e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) 110529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochadb logcat -c 120529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochadb shell am start -S \ 131e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) -a android.intent.action.VIEW \ 141e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) -n org.chromium.mojo_shell_apk/.MojoShellActivity \ 151e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) $INTENT_ARGS 165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)adb logcat -s MojoShellApplication MojoShellActivity chromium 17