- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / examples / api / nativeMessaging / host / uninstall_host.sh
1 #!/bin/sh
2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 set -e
7
8 if [ $(uname -s) == 'Darwin' ]; then
9   TARGET_DIR='/Library/Google/Chrome/NativeMessagingHosts'
10 else
11   TARGET_DIR='/etc/opt/chrome/native-messaging-hosts'
12 fi
13
14 HOST_NAME=com.google.chrome.example.echo
15 rm $TARGET_DIR/com.google.chrome.example.echo.json
16 echo Native messaging host $HOST_NAME has been uninstalled.