BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / remoting / host / win / get_clsids.py
blobe4899d3de88565f6aae86a3e4ad924f502c1af38
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
8 # already.
9 # The IDs are not random to avoid rebuilding host when it's not
10 # necessary.
12 import uuid
13 import sys
15 if len(sys.argv) != 4:
16 print """Expecting 3 args:
17 <daemon_controller_guid> <rdp_desktop_session_guid> <version>"""
18 sys.exit(1)
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.
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)) + '"]'