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

Side by Side Diff: remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh

Issue 9958083: Initial version of the Chromoting installer for Mac. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
Property Changes:
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
OLDNEW
(Empty)
1 #!/bin/sh
2
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.
6
7 NAME=org.chromium.chromoting
8 CONFIG_DIR=/Library/PrivilegedHelperTools
9 HOST_EXE=$CONFIG_DIR/$NAME.me2me_host
10 ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled
11
12 if [ "$1" = "--disable" ]; then
13 # This script is executed from base::mac::ExecuteWithPrivilegesAndWait(),
14 # which requires the child process to write its PID to stdout before
15 # anythine else. See base/mac/authorization_util.h for details.
16 echo $$
17 rm -f "$ENABLED_FILE"
18 elif [ "$1" = "--enable" ]; then
19 echo $$
20 touch "$ENABLED_FILE"
21 else
22 exec "$HOST_EXE" \
23 --auth-config="$CONFIG_DIR/$NAME.json" \
24 --host-config="$CONFIG_DIR/$NAME.json"
25 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698