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

Issue 360042: First patch in making destructors of refcounted objects private. (Closed)

Created:
11 years, 1 month ago by jam
Modified:
9 years, 6 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, fbarchard, ben+cc_chromium.org, John Grabowski, Alpha Left Google, jam, pam+watch_chromium.org, Paweł Hajdan Jr., scherkus (not reviewing)
Visibility:
Public.

Description

First patch in making destructors of refcounted objects private. BUG=26749 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31136

Patch Set 1 #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -37 lines) Patch
M app/gfx/font.h View 2 chunks +4 lines, -1 line 0 comments Download
M app/sql/connection.h View 4 chunks +9 lines, -2 lines 0 comments Download
M base/directory_watcher.h View 1 chunk +5 lines, -1 line 0 comments Download
M base/directory_watcher_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M base/field_trial.h View 1 chunk +4 lines, -0 lines 2 comments Download
M base/message_loop_unittest.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M base/message_pump_glib_unittest.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M base/ref_counted.h View 2 chunks +7 lines, -2 lines 0 comments Download
M base/ref_counted_memory.h View 1 chunk +6 lines, -3 lines 0 comments Download
M base/ref_counted_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M base/stack_container_unittest.cc View 1 chunk +5 lines, -1 line 0 comments Download
M ipc/file_descriptor_set_posix.h View 2 chunks +4 lines, -1 line 0 comments Download
M ipc/ipc_channel_proxy.h View 5 chunks +11 lines, -5 lines 2 comments Download
M ipc/ipc_channel_proxy.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M ipc/ipc_sync_channel.h View 2 chunks +1 line, -2 lines 5 comments Download
M ipc/ipc_sync_channel.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M media/audio/linux/alsa_output.h View 3 chunks +3 lines, -1 line 0 comments Download
M media/base/buffers.h View 2 chunks +6 lines, -0 lines 2 comments Download
M media/base/factory.h View 5 chunks +10 lines, -0 lines 4 comments Download
M media/filters/ffmpeg_demuxer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M printing/printed_document.h View 2 chunks +4 lines, -1 line 0 comments Download
M printing/printed_page.h View 2 chunks +4 lines, -1 line 0 comments Download
M skia/ext/bitmap_platform_device_linux.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M views/widget/aero_tooltip_manager.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jam
11 years, 1 month ago (2009-11-05 20:13:45 UTC) #1
M-A Ruel
lgtm with a few fixes. http://codereview.chromium.org/360042/diff/1/17 File base/field_trial.h (right): http://codereview.chromium.org/360042/diff/1/17#newcode121 Line 121: virtual ~FieldTrial() {} ...
11 years, 1 month ago (2009-11-05 20:31:28 UTC) #2
jam
http://codereview.chromium.org/360042/diff/1/17 File base/field_trial.h (right): http://codereview.chromium.org/360042/diff/1/17#newcode121 Line 121: virtual ~FieldTrial() {} On 2009/11/05 20:31:28, Marc-Antoine Ruel ...
11 years, 1 month ago (2009-11-05 21:52:37 UTC) #3
M-A Ruel
ok, please commit. :)
11 years, 1 month ago (2009-11-05 21:56:04 UTC) #4
M-A Ruel
On 2009/11/05 21:56:04, Marc-Antoine Ruel wrote: > ok, please commit. :) oops, was already committed. ...
11 years, 1 month ago (2009-11-05 21:56:23 UTC) #5
awong
11 years, 1 month ago (2009-11-05 21:58:39 UTC) #6
drive-by comment.

http://codereview.chromium.org/360042/diff/1/20
File ipc/ipc_sync_channel.h (right):

http://codereview.chromium.org/360042/diff/1/20#newcode98
Line 98: ~SyncContext();
On 2009/11/05 21:52:37, John Abd-El-Malek wrote:
> On 2009/11/05 20:31:28, Marc-Antoine Ruel wrote:
> > virtual
> 
> no need, nothing derives from this class.

It's already virtual because it's inheriting from a class that has a virtual
destructor.  Making it virtual here is just good documentation.  (Also the style
guide says to. :) )

Same with the other childless classes that are descendants of others with
virtual destructors.

Powered by Google App Engine
This is Rietveld 408576698