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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh
===================================================================
--- remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh (revision 0)
+++ remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh (working copy)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+NAME=org.chromium.chromoting
+CONFIG_DIR=/Library/PrivilegedHelperTools
+HOST_EXE=$CONFIG_DIR/$NAME.me2me_host
+ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled
+
+if [ "$1" = "--disable" ]; then
+ # This script is executed from base::mac::ExecuteWithPrivilegesAndWait(),
+ # which requires the child process to write its PID to stdout before
+ # anythine else. See base/mac/authorization_util.h for details.
+ echo $$
+ rm -f "$ENABLED_FILE"
+elif [ "$1" = "--enable" ]; then
+ echo $$
+ touch "$ENABLED_FILE"
+else
+ exec "$HOST_EXE" \
+ --auth-config="$CONFIG_DIR/$NAME.json" \
+ --host-config="$CONFIG_DIR/$NAME.json"
+fi
Property changes on: remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh
___________________________________________________________________
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

Powered by Google App Engine
This is Rietveld 408576698