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

Side by Side 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, 9 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 unified diff | Download patch
« no previous file with comments | « remoting/host/setup/BUILD.gn ('k') | remoting/protocol/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« 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