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

Issue 8337006: base/win: small improvement to RegKey API. (Closed)

Created:
9 years, 2 months ago by tfarina
Modified:
9 years, 2 months ago
CC:
chromium-reviews, GeorgeY, tfarina, amit, brettw-cc_chromium.org, robertshield, dyu1, Paweł Hajdan Jr., Ilya Sherman, dhollowa
Visibility:
Public.

Description

base/win: small improvement to RegKey API. - Rename ValueExists() to HasValue(). - Rename ValueCount() to GetValueCount(). - Rename ReadName() to GetValueNameAt(). R=maruel@chromium.org,willchan@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106074

Patch Set 1 #

Total comments: 2

Patch Set 2 : Close -> Closes #

Total comments: 6

Patch Set 3 : apply grt comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -64 lines) Patch
M base/win/registry.h View 1 2 2 chunks +14 lines, -8 lines 0 comments Download
M base/win/registry.cc View 1 2 4 chunks +22 lines, -21 lines 0 comments Download
M base/win/registry_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/autofill/autofill_ie_toolbar_import_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/background/background_mode_manager_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/delete_reg_value_work_item_unittest.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/installer/util/google_update_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/install_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/install_util_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/installer/util/set_reg_value_work_item_unittest.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M chrome_frame/chrome_tab.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
tfarina
Marc, you have reviewed my patches to RegKey when I cleaned it up. Will for ...
9 years, 2 months ago (2011-10-18 03:19:25 UTC) #1
M-A Ruel
ok, lgtm http://codereview.chromium.org/8337006/diff/1/base/win/registry.h File base/win/registry.h (right): http://codereview.chromium.org/8337006/diff/1/base/win/registry.h#newcode45 base/win/registry.h:45: // Close this reg key. Closes
9 years, 2 months ago (2011-10-18 03:28:05 UTC) #2
tfarina
http://codereview.chromium.org/8337006/diff/1/base/win/registry.h File base/win/registry.h (right): http://codereview.chromium.org/8337006/diff/1/base/win/registry.h#newcode45 base/win/registry.h:45: // Close this reg key. On 2011/10/18 03:28:06, Marc-Antoine ...
9 years, 2 months ago (2011-10-18 03:45:07 UTC) #3
willchan no longer on Chromium
lgtm
9 years, 2 months ago (2011-10-18 04:24:44 UTC) #4
grt (UTC plus 2)
drive-by comment nits. http://codereview.chromium.org/8337006/diff/4001/base/win/registry.h File base/win/registry.h (right): http://codereview.chromium.org/8337006/diff/4001/base/win/registry.h#newcode42 base/win/registry.h:42: // Opens an existing reg key, ...
9 years, 2 months ago (2011-10-18 15:00:00 UTC) #5
tfarina
9 years, 2 months ago (2011-10-18 15:47:04 UTC) #6
On 2011/10/18 15:00:00, grt wrote:
> drive-by comment nits.
> 
Thank you for the comments!

Applied everything, committing after it passes trybots.

http://codereview.chromium.org/8337006/diff/4001/base/win/registry.h
File base/win/registry.h (right):

http://codereview.chromium.org/8337006/diff/4001/base/win/registry.h#newcode42
base/win/registry.h:42: // Opens an existing reg key, given the full key name.
On 2011/10/18 15:00:00, grt wrote:
> full_key_name and this comment are misleading.  This method opens up a subkey
of
> |this| object's currently open key.  relative_key_name or subkey would both be
> more appropriate, since the name is relative to the currently open key.

Done.

http://codereview.chromium.org/8337006/diff/4001/base/win/registry.h#newcode49
base/win/registry.h:49: bool HasValue(const wchar_t* value_name) const;
On 2011/10/18 15:00:00, grt wrote:
> The following is more accurate:
> // Returns false if this key does not have the specified value, or if an error
> occurs while attempting to access it.

Done.

http://codereview.chromium.org/8337006/diff/4001/base/win/registry.h#newcode51
base/win/registry.h:51: // Returns the number of values for this key.
On 2011/10/18 15:00:00, grt wrote:
> // Returns the number of values for this key, or 0 if the number cannot be
> determined.

Done.

Powered by Google App Engine
This is Rietveld 408576698