DescriptionUse a better registration suffix that will always be unique while respecting the MSDN rules (2nd try).
The suffix will now be the base32 encoding of the md5 hash of the user's username. This is always unique and can be determined many times deterministically without I/O access (as opposed to other methods we considered).
It respects all MSDN constraints for properties onto which it is appended.
This replaces the prior-style username suffixes for new installs.
Old-style suffixes (i.e. unsuffixed and username suffixed) will however be kept as is through future updates.
Design doc: https://docs.google.com/a/chromium.org/document/d/1qmcV3uYBh3JwvXhYkI7asg0nN7KfVMWVOzND4p0jQ3E/edit
Note: This is the continuation of http://codereview.chromium.org/10617002/ which was reverted in https://chromiumcodereview.appspot.com/10667006/
BUG=133810, 133173
TEST= http://goo.gl/ZZ7gE
installer_util_unittests.exe --gtest_filter=ShellUtilTest.*
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145596
Patch Set 1 #Patch Set 2 : dont assume chrome is installed + delete all potential reg keys on uninstall #Patch Set 3 : remove extra empty line #
Total comments: 41
Patch Set 4 : address comments -- no big changes #Patch Set 5 : uninstall logic and thread-safe suffix caching #
Total comments: 7
Patch Set 6 : use sid instead of username #Patch Set 7 : uninline UserSpecificRegistrySuffix functions #
Messages
Total messages: 10 (0 generated)
|