OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # Each CLSID is a hash of the current version string salted with an |
| 6 # arbitrary GUID. This ensures that the newly installed COM classes will |
| 7 # be used during/after upgrade even if there are old instances running |
| 8 # already. |
| 9 # The IDs are not random to avoid rebuilding host when it's not |
| 10 # necessary. |
| 11 |
| 12 import uuid |
| 13 import sys |
| 14 |
| 15 if len(sys.argv) != 4: |
| 16 print """Expecting 3 args: |
| 17 <daemon_controller_guid> <rdp_desktop_session_guid> <version>""" |
| 18 sys.exit(1) |
| 19 |
| 20 daemon_controller_guid = sys.argv[1] |
| 21 rdp_desktop_session_guid = sys.argv[2] |
| 22 version_full = sys.argv[3] |
| 23 |
| 24 # Output a GN list of 2 strings. |
| 25 print '["' + \ |
| 26 str(uuid.uuid5(uuid.UUID(daemon_controller_guid), version_full)) + '", ' |
| 27 print '"' + \ |
| 28 str(uuid.uuid5(uuid.UUID(rdp_desktop_session_guid), version_full)) + '"]' |
| 29 |
OLD | NEW |