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.
8 if [ $(uname -s) == 'Darwin' ]; then
9 if [ "$(whoami)" == "root" ]; then
10 TARGET_DIR="/Library/Google/Chrome/NativeMessagingHosts"
13 "$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts"
16 if [ "$(whoami)" == "root" ]; then
17 TARGET_DIR="/etc/opt/chrome/native-messaging-hosts"
19 TARGET_DIR='$HOME/.config/google-chrome/NativeMessagingHosts'
23 HOST_NAME=com.google.chrome.example.echo
24 rm $TARGET_DIR/com.google.chrome.example.echo.json
25 echo Native messaging host $HOST_NAME has been uninstalled.