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

Issue 6090006: Regkey functions return error code instead of bool (Closed)

Created:
9 years, 11 months ago by amit
Modified:
9 years ago
CC:
chromium-reviews, James Hawkins, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., Ilya Sherman, dhollowa
Visibility:
Public.

Description

Regkey functions return error code instead of bool Change the Regkey helper to consistently use and return LONG instead of bool. Fix RegKey usage all over the code base and get rid of workarounds due to lack of return value. Reviewers: brettw: everything (skip parts for other reviewers if you wish) robertshield,grt: chrome_frame, installer siggi: ceee BUG=none TEST=covered by existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71768

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 63

Patch Set 9 : '' #

Total comments: 13

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 31

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 43

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+938 lines, -901 lines) Patch
M DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M base/win/registry.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +55 lines, -17 lines 0 comments Download
M base/win/registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +101 lines, -111 lines 0 comments Download
M base/win/registry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +53 lines, -16 lines 0 comments Download
M base/win/win_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -3 lines 0 comments Download
M ceee/ie/common/ceee_module_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +24 lines, -24 lines 0 comments Download
M ceee/ie/common/ceee_module_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +24 lines, -12 lines 0 comments Download
M ceee/ie/common/ceee_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M ceee/ie/common/ie_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +11 lines, -6 lines 0 comments Download
M ceee/ie/common/ie_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +11 lines, -10 lines 0 comments Download
M ceee/ie/plugin/toolband/toolband_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -2 lines 0 comments Download
M ceee/installer_dll/installer_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +12 lines, -11 lines 0 comments Download
M ceee/testing/utils/test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/app/breakpad_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_ie_toolbar_import_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/background_mode_manager_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/enumerate_modules_model_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_rlz_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/external_registry_extension_loader_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/first_run/first_run_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/importer/firefox_importer_utils_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/importer/ie_importer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +20 lines, -17 lines 0 comments Download
M chrome/browser/plugin_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_delegate_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +25 lines, -32 lines 0 comments Download
M chrome/browser/rlz/rlz_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/external_protocol_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/shell_dialogs_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_plugin_lib.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/installer/setup/chrome_frame_ready_mode.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -9 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +9 lines, -14 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/channel_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/installer/util/create_reg_key_work_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/create_reg_key_work_item_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +41 lines, -40 lines 0 comments Download
M chrome/installer/util/delete_after_reboot_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/installer/util/delete_reg_value_work_item.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -12 lines 0 comments Download
M chrome/installer/util/delete_reg_value_work_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +41 lines, -63 lines 0 comments Download
M chrome/installer/util/delete_reg_value_work_item_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +16 lines, -15 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/google_update_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +31 lines, -26 lines 0 comments Download
M chrome/installer/util/google_update_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +32 lines, -23 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +25 lines, -16 lines 0 comments Download
M chrome/installer/util/install_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/installer/util/installation_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/installer/util/package_properties_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/util/package_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/installer/util/product.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +14 lines, -18 lines 0 comments Download
M chrome/installer/util/product_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/installer/util/set_reg_value_work_item.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/installer/util/set_reg_value_work_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +71 lines, -130 lines 0 comments Download
M chrome/installer/util/set_reg_value_work_item_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +30 lines, -25 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/installer/util/work_item.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M chrome/installer/util/work_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/installer/util/work_item_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/installer/util/work_item_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/installer/util/work_item_list_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +25 lines, -16 lines 0 comments Download
M chrome/test/mini_installer_test/chrome_mini_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/test/plugin/plugin_test.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/chrome_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +18 lines, -16 lines 0 comments Download
M chrome_frame/crash_reporting/crash_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +12 lines, -11 lines 0 comments Download
M chrome_frame/policy_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +10 lines, -7 lines 0 comments Download
M chrome_frame/ready_mode/internal/registry_ready_mode_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +17 lines, -25 lines 0 comments Download
M chrome_frame/test/chrome_frame_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -3 lines 0 comments Download
M chrome_frame/test/perf/chrome_frame_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M chrome_frame/test/policy_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +10 lines, -7 lines 0 comments Download
M chrome_frame/utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +17 lines, -13 lines 0 comments Download
M net/base/platform_mime_util_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/ssl_config_service_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +9 lines, -11 lines 0 comments Download
M net/proxy/proxy_config_service_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/npapi/plugin_list_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +8 lines, -5 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 49 (0 generated)
amit
9 years, 11 months ago (2011-01-10 20:10:42 UTC) #1
brettw
Which places are the ones you changed that did workarounds for the lack of return ...
9 years, 11 months ago (2011-01-10 20:42:27 UTC) #2
Sigurður Ásgeirsson
Thanks for doing this. http://codereview.chromium.org/6090006/diff/141066/base/win/registry.h File base/win/registry.h (right): http://codereview.chromium.org/6090006/diff/141066/base/win/registry.h#newcode90 base/win/registry.h:90: GONG ReadValueDW(const wchar_t* name, DWORD* ...
9 years, 11 months ago (2011-01-10 21:02:42 UTC) #3
robertshield
http://codereview.chromium.org/6090006/diff/141066/base/win/registry.h File base/win/registry.h (right): http://codereview.chromium.org/6090006/diff/141066/base/win/registry.h#newcode24 base/win/registry.h:24: operator bool () {return false;} If you intend this ...
9 years, 11 months ago (2011-01-10 21:34:36 UTC) #4
brettw
I looked at about half of this patch and so far, every callsite is now ...
9 years, 11 months ago (2011-01-10 23:17:00 UTC) #5
amit
In general, majority of callers should be aware of (and handle) registry API failures for ...
9 years, 11 months ago (2011-01-10 23:32:05 UTC) #6
brettw
I just clicked on two random files that seem representative: delete_after_reboot_helper.cc and firefox_importer_utils_win.cc. What error ...
9 years, 11 months ago (2011-01-10 23:47:52 UTC) #7
amit
delete_after_reboot_helper.cc: - Please refer to GetPendingMovesValue where we are working around since API return values ...
9 years, 11 months ago (2011-01-11 00:14:48 UTC) #8
grt (UTC plus 2)
Thanks for the work here, Amit. This will allow us to make further cleanups to ...
9 years, 11 months ago (2011-01-11 03:51:30 UTC) #9
brettw
Have you considered storing the return value for the callers that are actually interested? This ...
9 years, 11 months ago (2011-01-11 05:59:45 UTC) #10
grt (UTC plus 2)
On Tue, Jan 11, 2011 at 12:59 AM, <brettw@chromium.org> wrote: > Have you considered storing ...
9 years, 11 months ago (2011-01-11 14:29:27 UTC) #11
brettw
On Tue, Jan 11, 2011 at 6:29 AM, Greg Thompson <grt@chromium.org> wrote: > On Tue, ...
9 years, 11 months ago (2011-01-11 16:51:04 UTC) #12
amit
I did consider it and it was tempting since it's a much simpler change. Then ...
9 years, 11 months ago (2011-01-11 18:45:47 UTC) #13
brettw
On Tue, Jan 11, 2011 at 10:45 AM, Amit Joshi <amit@chromium.org> wrote: > I did ...
9 years, 11 months ago (2011-01-11 23:39:02 UTC) #14
amit
new patch up, PTAL. http://codereview.chromium.org/6090006/diff/141066/base/win/registry.h File base/win/registry.h (right): http://codereview.chromium.org/6090006/diff/141066/base/win/registry.h#newcode14 base/win/registry.h:14: // Please ignore this part. ...
9 years, 11 months ago (2011-01-12 04:11:23 UTC) #15
Sigurður Ásgeirsson
lgtm for CEEE portion. Thanks again for doing this. http://codereview.chromium.org/6090006/diff/141066/base/win/registry.h File base/win/registry.h (right): http://codereview.chromium.org/6090006/diff/141066/base/win/registry.h#newcode14 base/win/registry.h:14: ...
9 years, 11 months ago (2011-01-12 14:04:19 UTC) #16
robertshield
Mostly style nits, one thing that looks like a regression (|| instead of &&). In ...
9 years, 11 months ago (2011-01-12 15:01:29 UTC) #17
grt (UTC plus 2)
Just a few comments this time around. Lookin' great overall. http://codereview.chromium.org/6090006/diff/141066/chrome/browser/autofill/autofill_ie_toolbar_import_win.cc File chrome/browser/autofill/autofill_ie_toolbar_import_win.cc (right): http://codereview.chromium.org/6090006/diff/141066/chrome/browser/autofill/autofill_ie_toolbar_import_win.cc#newcode60 ...
9 years, 11 months ago (2011-01-12 15:06:38 UTC) #18
brettw
If you're planning on removing your GONG hack, I don't see how you can say ...
9 years, 11 months ago (2011-01-12 23:45:20 UTC) #19
amit
Seems like more people are in favor of eliminating a temporary in 'if' conditions, so ...
9 years, 11 months ago (2011-01-13 00:01:52 UTC) #20
amit
On Wed, Jan 12, 2011 at 3:45 PM, <brettw@chromium.org> wrote: > If you're planning on ...
9 years, 11 months ago (2011-01-13 00:37:12 UTC) #21
brettw
On 2011/01/13 00:37:12, amit wrote: > On Wed, Jan 12, 2011 at 3:45 PM, <mailto:brettw@chromium.org> ...
9 years, 11 months ago (2011-01-13 00:50:17 UTC) #22
cpu_(ooo_6.6-7.5)
I think the API should reflect the way it is used. Given the maturity of ...
9 years, 11 months ago (2011-01-13 01:36:35 UTC) #23
Sigurður Ásgeirsson
On Wed, Jan 12, 2011 at 8:36 PM, <cpu@chromium.org> wrote: > I think the API ...
9 years, 11 months ago (2011-01-13 15:05:02 UTC) #24
grt (UTC plus 2)
On Thu, Jan 13, 2011 at 10:04 AM, Sigurður Ásgeirsson <siggi@chromium.org>wrote: > > >> 2- ...
9 years, 11 months ago (2011-01-13 16:01:16 UTC) #25
brettw
On Thu, Jan 13, 2011 at 7:04 AM, Sigurður Ásgeirsson <siggi@chromium.org> wrote: > How about ...
9 years, 11 months ago (2011-01-13 17:09:21 UTC) #26
Sigurður Ásgeirsson
On Thu, Jan 13, 2011 at 12:09 PM, Brett Wilson <brettw@chromium.org> wrote: > On Thu, ...
9 years, 11 months ago (2011-01-13 18:13:19 UTC) #27
sanjeevr
The abhorrence of the GetLastError paradigm comes from years of dealing with issues caused by ...
9 years, 11 months ago (2011-01-13 18:21:25 UTC) #28
tommi (sloooow) - chröme
Thanks for doing this Amit. One nit I have is that GONG doesn't sound very ...
9 years, 11 months ago (2011-01-13 19:44:36 UTC) #29
amit
Siggi, Sanjeev and Tommi have given enough good reasons why GetLastError() is not a recommended ...
9 years, 11 months ago (2011-01-13 21:37:51 UTC) #30
amit
On Thu, Jan 13, 2011 at 1:37 PM, Amit Joshi <amit@chromium.org> wrote: > Siggi, Sanjeev ...
9 years, 11 months ago (2011-01-13 22:48:13 UTC) #31
brettw
On Thu, Jan 13, 2011 at 11:44 AM, <tommi@chromium.org> wrote: > Thanks for doing this ...
9 years, 11 months ago (2011-01-13 23:04:09 UTC) #32
tommi (sloooow) - chröme
A very simple example is RegDeleteValue. It can fail because the value doesn't exist, insufficient ...
9 years, 11 months ago (2011-01-13 23:06:01 UTC) #33
brettw
On Thu, Jan 13, 2011 at 3:05 PM, Tommi <tommi@chromium.org> wrote: > A very simple ...
9 years, 11 months ago (2011-01-13 23:09:00 UTC) #34
amit
On Thu, Jan 13, 2011 at 3:08 PM, Brett Wilson <brettw@chromium.org> wrote: > On Thu, ...
9 years, 11 months ago (2011-01-13 23:45:42 UTC) #35
cpu_(ooo_6.6-7.5)
Note that the method HKEY Handle() is implemented already we we could rewrite amit's example ...
9 years, 11 months ago (2011-01-14 02:22:45 UTC) #36
amit
Option #1 negates the benefits of a wrapper to a large extent, you can notice ...
9 years, 11 months ago (2011-01-14 04:24:27 UTC) #37
amit
Updated, please continue. Other changes: - Cleanup DeleteRegValueWorkItem and SetRegValueWorkItem - Removed 'type' arg from ...
9 years, 11 months ago (2011-01-14 05:23:33 UTC) #38
tommi (sloooow) - chröme
I'm completely with Amit, Siggi, Sanjeev, Robert and Greg on this. The argument is now ...
9 years, 11 months ago (2011-01-14 05:26:47 UTC) #39
brettw
On Thu, Jan 13, 2011 at 3:45 PM, Amit Joshi <amit@chromium.org> wrote: > On Thu, ...
9 years, 11 months ago (2011-01-14 07:46:45 UTC) #40
brettw
I think there is a philosophical difference between writing Windows code in Chrome, and writing ...
9 years, 11 months ago (2011-01-14 09:33:49 UTC) #41
grt (UTC plus 2)
http://codereview.chromium.org/6090006/diff/190001/chrome/installer/util/delete_reg_value_work_item.cc File chrome/installer/util/delete_reg_value_work_item.cc (right): http://codereview.chromium.org/6090006/diff/190001/chrome/installer/util/delete_reg_value_work_item.cc#newcode50 chrome/installer/util/delete_reg_value_work_item.cc:50: if (result == ERROR_MORE_DATA) { Have you verified this? ...
9 years, 11 months ago (2011-01-14 15:53:43 UTC) #42
tommi (sloooow) - chröme
Hey Brett, I apologize for the tone in my email. Reading it back it sounds ...
9 years, 11 months ago (2011-01-14 16:36:12 UTC) #43
cpu_(ooo_6.6-7.5)
Ok, if we don't buy the making it easy to use for non-windows people why ...
9 years, 11 months ago (2011-01-14 21:34:07 UTC) #44
amit
On Fri, Jan 14, 2011 at 1:34 PM, <cpu@chromium.org> wrote: > Ok, if we don't ...
9 years, 11 months ago (2011-01-14 22:38:15 UTC) #45
cpu_(ooo_6.6-7.5)
lgtm with the removal now. Somebody could have a CL written for 5 weeks so ...
9 years, 11 months ago (2011-01-14 22:45:00 UTC) #46
amit
New patch up. Also removed majority of temporary vars (except where being used in LOGs) ...
9 years, 11 months ago (2011-01-15 01:28:11 UTC) #47
grt (UTC plus 2)
LGTM with some nits mostly about line wrapping and indentation. Feel free to change or ...
9 years, 11 months ago (2011-01-16 04:19:48 UTC) #48
amit
9 years, 11 months ago (2011-01-16 07:54:27 UTC) #49
Thanks for your patience and comments for far. New (and hopefully final) patch
up if you want to see what will land.

http://codereview.chromium.org/6090006/diff/240002/base/win/win_util.cc
File base/win/win_util.cc (right):

http://codereview.chromium.org/6090006/diff/240002/base/win/win_util.cc#newco...
base/win/win_util.cc:132: == ERROR_SUCCESS);
On 2011/01/16 04:19:48, grt wrote:
> nit: Chrome style guide says to wrap after the operator, not before.  also,
> align ERROR_SUCCESS with the open paren, no?

Done.

http://codereview.chromium.org/6090006/diff/240002/ceee/ie/common/ceee_module...
File ceee/ie/common/ceee_module_util.cc (right):

http://codereview.chromium.org/6090006/diff/240002/ceee/ie/common/ceee_module...
ceee/ie/common/ceee_module_util.cc:111: break;
On 2011/01/16 04:19:48, grt wrote:
> Add braces around this line since the if spans multiple lines.

Done.

http://codereview.chromium.org/6090006/diff/240002/ceee/ie/common/ceee_util.cc
File ceee/ie/common/ceee_util.cc (right):

http://codereview.chromium.org/6090006/diff/240002/ceee/ie/common/ceee_util.c...
ceee/ie/common/ceee_util.cc:27: == ERROR_SUCCESS);
On 2011/01/16 04:19:48, grt wrote:
> Wrapping and indentation

Done.

http://codereview.chromium.org/6090006/diff/240002/ceee/ie/plugin/toolband/to...
File ceee/ie/plugin/toolband/toolband_proxy.cc (right):

http://codereview.chromium.org/6090006/diff/240002/ceee/ie/plugin/toolband/to...
ceee/ie/plugin/toolband/toolband_proxy.cc:55: == ERROR_SUCCESS) {
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

http://codereview.chromium.org/6090006/diff/240002/ceee/installer_dll/install...
File ceee/installer_dll/installer_helper.cc (right):

http://codereview.chromium.org/6090006/diff/240002/ceee/installer_dll/install...
ceee/installer_dll/installer_helper.cc:262: != ERROR_SUCCESS) {
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/chan...
File chrome/installer/util/channel_info.cc (right):

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/chan...
chrome/installer/util/channel_info.cc:124: == ERROR_SUCCESS);
On 2011/01/16 04:19:48, grt wrote:
> Wrapping and indentation.

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/dele...
File chrome/installer/util/delete_after_reboot_helper.cc (right):

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/dele...
chrome/installer/util/delete_after_reboot_helper.cc:383: == ERROR_SUCCESS);
On 2011/01/16 04:19:48, grt wrote:
> Wrapping and indentation.

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/dele...
chrome/installer/util/delete_after_reboot_helper.cc:391: buffer.size(),
REG_MULTI_SZ) == ERROR_SUCCESS);
On 2011/01/16 04:19:48, grt wrote:
> Should this be indented 4 spaces from the open paren above?
If it fits in one line. It does not and it will make ERROR_SUCCESS dangle on the
next line 6 spaces from the left :)

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/goog...
File chrome/installer/util/google_update_settings.cc (right):

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/goog...
chrome/installer/util/google_update_settings.cc:99: != ERROR_SUCCESS) {
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/goog...
chrome/installer/util/google_update_settings.cc:117: == ERROR_SUCCESS);
On 2011/01/16 04:19:48, grt wrote:
> Wrapping and indentation

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/goog...
File chrome/installer/util/google_update_settings_unittest.cc (right):

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/goog...
chrome/installer/util/google_update_settings_unittest.cc:171: == ERROR_SUCCESS)
{
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/goog...
chrome/installer/util/google_update_settings_unittest.cc:376: != ERROR_SUCCESS)
{
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/inst...
File chrome/installer/util/installation_state.cc (right):

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/inst...
chrome/installer/util/installation_state.cc:26: == ERROR_SUCCESS) {
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/installer/util/inst...
chrome/installer/util/installation_state.cc:32: != ERROR_SUCCESS ||
!channel_.Initialize(key)) {
On 2011/01/16 04:19:48, grt wrote:
> Wrapping (plus extra parens around the first part?)

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome/test/mini_installer...
File chrome/test/mini_installer_test/chrome_mini_installer.cc (right):

http://codereview.chromium.org/6090006/diff/240002/chrome/test/mini_installer...
chrome/test/mini_installer_test/chrome_mini_installer.cc:450: == ERROR_SUCCESS)
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome_frame/chrome_tab.cc
File chrome_frame/chrome_tab.cc (right):

http://codereview.chromium.org/6090006/diff/240002/chrome_frame/chrome_tab.cc...
chrome_frame/chrome_tab.cc:448: LRESULT ret = ::RegEnumValue(ua_key.Handle(),
value_index, value_name,
On 2011/01/16 04:19:48, grt wrote:
> Is RegistryValueIterator not suitable for use here?

Unfortunately no since it will involve opening the RegKey again and another
iteration to find matches.

http://codereview.chromium.org/6090006/diff/240002/chrome_frame/utils.cc
File chrome_frame/utils.cc (right):

http://codereview.chromium.org/6090006/diff/240002/chrome_frame/utils.cc#newc...
chrome_frame/utils.cc:237: == ERROR_SUCCESS);
On 2011/01/16 04:19:48, grt wrote:
> Wrapping and indentation

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome_frame/utils.cc#newc...
chrome_frame/utils.cc:260: == ERROR_SUCCESS) {
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

http://codereview.chromium.org/6090006/diff/240002/chrome_frame/utils.cc#newc...
chrome_frame/utils.cc:758: return RENDERER_TYPE_UNDETERMINED;
On 2011/01/16 04:19:48, grt wrote:
> Add braces around this line since the if spans multiple lines.

Done.

http://codereview.chromium.org/6090006/diff/240002/webkit/plugins/npapi/plugi...
File webkit/plugins/npapi/plugin_list_win.cc (right):

http://codereview.chromium.org/6090006/diff/240002/webkit/plugins/npapi/plugi...
webkit/plugins/npapi/plugin_list_win.cc:194: != ERROR_SUCCESS)
On 2011/01/16 04:19:48, grt wrote:
> Wrapping

Done.

Powered by Google App Engine
This is Rietveld 408576698