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.
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
9 # The IDs are not random to avoid rebuilding host when it's not
15 if len(sys
.argv
) != 4:
16 print """Expecting 3 args:
17 <daemon_controller_guid> <rdp_desktop_session_guid> <version>"""
20 daemon_controller_guid
= sys
.argv
[1]
21 rdp_desktop_session_guid
= sys
.argv
[2]
22 version_full
= sys
.argv
[3]
24 # Output a GN list of 2 strings.
26 str(uuid
.uuid5(uuid
.UUID(daemon_controller_guid
), version_full
)) + '", '
28 str(uuid
.uuid5(uuid
.UUID(rdp_desktop_session_guid
), version_full
)) + '"]'