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

Issue 10662052: Use a better registration suffix that will always be unique while respecting the MSDN rules (2nd tr… (Closed)

Created:
8 years, 6 months ago by gab
Modified:
8 years, 5 months ago
CC:
chromium-reviews, grt+watch_chromium.org, grt (UTC plus 2), chrome-win8-eng_google.com
Visibility:
Public.

Description

Use 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -56 lines) Patch
M chrome/installer/setup/uninstall.cc View 1 2 3 4 2 chunks +14 lines, -9 lines 0 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 4 5 2 chunks +32 lines, -2 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 12 chunks +193 lines, -38 lines 0 comments Download
M chrome/installer/util/shell_util_unittest.cc View 1 2 3 8 chunks +44 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
gab
PTAL. Fixed problems with the first CL (the DCHECK hit was because I was assuming ...
8 years, 6 months ago (2012-06-26 22:01:31 UTC) #1
robertshield
http://codereview.chromium.org/10662052/diff/5002/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): http://codereview.chromium.org/10662052/diff/5002/chrome/installer/setup/uninstall.cc#newcode539 chrome/installer/setup/uninstall.cc:539: browser_entry_suffix.compare(old_style_suffix) == 0)) { on uninstall, should we not ...
8 years, 6 months ago (2012-06-27 02:22:29 UTC) #2
gab
http://codereview.chromium.org/10662052/diff/5002/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): http://codereview.chromium.org/10662052/diff/5002/chrome/installer/setup/uninstall.cc#newcode539 chrome/installer/setup/uninstall.cc:539: browser_entry_suffix.compare(old_style_suffix) == 0)) { On 2012/06/27 02:22:29, robertshield wrote: ...
8 years, 6 months ago (2012-06-27 03:56:56 UTC) #3
grt (UTC plus 2)
drive-by http://codereview.chromium.org/10662052/diff/5002/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): http://codereview.chromium.org/10662052/diff/5002/chrome/installer/setup/uninstall.cc#newcode539 chrome/installer/setup/uninstall.cc:539: browser_entry_suffix.compare(old_style_suffix) == 0)) { nit: i think "browser_entry_suffix ...
8 years, 5 months ago (2012-06-27 15:47:32 UTC) #4
gab
Addressed all comments, PTAL. Cheers, Gab http://codereview.chromium.org/10662052/diff/5002/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): http://codereview.chromium.org/10662052/diff/5002/chrome/installer/setup/uninstall.cc#newcode539 chrome/installer/setup/uninstall.cc:539: browser_entry_suffix.compare(old_style_suffix) == 0)) ...
8 years, 5 months ago (2012-07-03 22:36:06 UTC) #5
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/10662052/diff/5002/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/10662052/diff/5002/chrome/installer/setup/uninstall.cc#newcode539 chrome/installer/setup/uninstall.cc:539: browser_entry_suffix.compare(old_style_suffix) == 0)) { On 2012/07/03 22:36:06, gab wrote: ...
8 years, 5 months ago (2012-07-05 20:00:19 UTC) #6
gab
Addressed all comments. Patched code in patch set 6 and then moved it (unmodified) in ...
8 years, 5 months ago (2012-07-05 21:19:52 UTC) #7
grt (UTC plus 2)
lgtm!
8 years, 5 months ago (2012-07-06 13:28:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/10662052/15002
8 years, 5 months ago (2012-07-06 14:35:56 UTC) #9
commit-bot: I haz the power
8 years, 5 months ago (2012-07-06 15:53:21 UTC) #10
Change committed as 145596

Powered by Google App Engine
This is Rietveld 408576698