summaryrefslogtreecommitdiffstats
path: root/remoting/tools
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-03 17:23:06 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-03 17:23:06 +0000
commit43e3f292c236376761c6fba970683b8c124a73a5 (patch)
treea721f2e7846e3921d9bc6e9f56fd375751b75c8c /remoting/tools
parent9393475614e7c169f1aecf8976a28361295352e1 (diff)
downloadchromium_src-43e3f292c236376761c6fba970683b8c124a73a5.zip
chromium_src-43e3f292c236376761c6fba970683b8c124a73a5.tar.gz
chromium_src-43e3f292c236376761c6fba970683b8c124a73a5.tar.bz2
[Chromoting] Auto-generate CLSID of the daemon controller at GYP time. This makes sure that a freshly installed version of the controller will be launched after upgrade even if there is already running instance cached by RPCSS.
BUG=137755 Review URL: https://chromiumcodereview.appspot.com/10837087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/tools')
-rwxr-xr-xremoting/tools/candle_and_light.py2
-rwxr-xr-xremoting/tools/uuidgen.py18
2 files changed, 20 insertions, 0 deletions
diff --git a/remoting/tools/candle_and_light.py b/remoting/tools/candle_and_light.py
index 056bffd..74a2572 100755
--- a/remoting/tools/candle_and_light.py
+++ b/remoting/tools/candle_and_light.py
@@ -23,6 +23,7 @@ def main():
parser = OptionParser()
parser.add_option('--wix_path', dest='wix_path')
parser.add_option('--version', dest='version')
+ parser.add_option('--controller_clsid', dest='controller_clsid')
parser.add_option('--product_dir', dest='product_dir')
parser.add_option('--intermediate_dir', dest='intermediate_dir')
parser.add_option('--sas_dll_path', dest='sas_dll_path')
@@ -42,6 +43,7 @@ def main():
'-ext "%(wix_path)s\\WixFirewallExtension.dll" '
'-ext "%(wix_path)s\\WixUIExtension.dll" '
'-ext "%(wix_path)s\\WixUtilExtension.dll" '
+ '"-dControllerClsid="%(controller_clsid)s"" '
'-dVersion=%(version)s '
'"-dFileSource=%(product_dir)s" '
'-dIconPath=resources/chromoting.ico '
diff --git a/remoting/tools/uuidgen.py b/remoting/tools/uuidgen.py
new file mode 100755
index 0000000..ed1e415
--- /dev/null
+++ b/remoting/tools/uuidgen.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+# 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.
+
+"""
+uuidgen.py -- UUID generation utility.
+"""
+
+import sys
+import uuid
+
+def main():
+ print uuid.uuid4()
+ return 0
+
+if __name__ == '__main__':
+ sys.exit(main())