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

Unified Diff: remoting/host/win/get_clsids.py

Issue 969173002: Add remoting and PPAPI tests to GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « remoting/host/setup/BUILD.gn ('k') | remoting/protocol/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/get_clsids.py
diff --git a/remoting/host/win/get_clsids.py b/remoting/host/win/get_clsids.py
new file mode 100644
index 0000000000000000000000000000000000000000..ba26ff9fe9082a324aff9081af88a5b7c7014c9f
--- /dev/null
+++ b/remoting/host/win/get_clsids.py
@@ -0,0 +1,29 @@
+# Copyright 2015 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.
+
+# Each CLSID is a hash of the current version string salted with an
+# arbitrary GUID. This ensures that the newly installed COM classes will
+# be used during/after upgrade even if there are old instances running
+# already.
+# The IDs are not random to avoid rebuilding host when it's not
+# necessary.
+
+import uuid
+import sys
+
+if len(sys.argv) != 4:
+ print """Expecting 3 args:
+<daemon_controller_guid> <rdp_desktop_session_guid> <version>"""
+ sys.exit(1)
+
+daemon_controller_guid = sys.argv[1]
+rdp_desktop_session_guid = sys.argv[2]
+version_full = sys.argv[3]
+
+# Output a GN list of 2 strings.
+print '["' + \
+ str(uuid.uuid5(uuid.UUID(daemon_controller_guid), version_full)) + '", '
+print '"' + \
+ str(uuid.uuid5(uuid.UUID(rdp_desktop_session_guid), version_full)) + '"]'
+
« no previous file with comments | « remoting/host/setup/BUILD.gn ('k') | remoting/protocol/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698