<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>62067</bug_id>
          
          <creation_ts>2011-06-03 16:40:23 -0700</creation_ts>
          <short_desc>[chromium] Give VoidCallbackClient a virtual destructor</short_desc>
          <delta_ts>2011-06-08 17:05:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nico Weber">thakis</reporter>
          <assigned_to name="Nico Weber">thakis</assigned_to>
          <cc>evan</cc>
    
    <cc>fishd</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>415281</commentid>
    <comment_count>0</comment_count>
    <who name="Nico Weber">thakis</who>
    <bug_when>2011-06-03 16:40:23 -0700</bug_when>
    <thetext>[chromium] Give VoidCallbackClient a virtual destructor</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415282</commentid>
    <comment_count>1</comment_count>
      <attachid>95986</attachid>
    <who name="Nico Weber">thakis</who>
    <bug_when>2011-06-03 16:41:37 -0700</bug_when>
    <thetext>Created attachment 95986
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415290</commentid>
    <comment_count>2</comment_count>
      <attachid>95986</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-06-03 16:50:11 -0700</bug_when>
    <thetext>Comment on attachment 95986
Patch

You should add virtual to WebPermissionCallback&apos;s destructor declaration as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415293</commentid>
    <comment_count>3</comment_count>
    <who name="Nico Weber">thakis</who>
    <bug_when>2011-06-03 16:51:19 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 95986 [details])
&gt; You should add virtual to WebPermissionCallback&apos;s destructor declaration as well.

Why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415451</commentid>
    <comment_count>4</comment_count>
      <attachid>95986</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-06-04 03:51:04 -0700</bug_when>
    <thetext>Comment on attachment 95986
Patch

Clearing flags on attachment: 95986

Committed r88106: &lt;http://trac.webkit.org/changeset/88106&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415452</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-06-04 03:51:08 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417685</commentid>
    <comment_count>6</comment_count>
      <attachid>95986</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2011-06-08 16:42:11 -0700</bug_when>
    <thetext>Comment on attachment 95986
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=95986&amp;action=review

&gt; Source/WebKit/chromium/src/NotificationPresenterImpl.cpp:59
&gt; +    virtual ~VoidCallbackClient() { }

this should be protected or private!!  notice how this class deletes itself.
no one else should be deleting this class.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417690</commentid>
    <comment_count>7</comment_count>
    <who name="Nico Weber">thakis</who>
    <bug_when>2011-06-08 16:48:11 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; this should be protected or private!!  notice how this class deletes itself.
&gt; no one else should be deleting this class.

https://bugs.webkit.org/show_bug.cgi?id=62341

(Note that it was public before, so I didn&apos;t really change this.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417691</commentid>
    <comment_count>8</comment_count>
    <who name="Nico Weber">thakis</who>
    <bug_when>2011-06-08 16:48:50 -0700</bug_when>
    <thetext>Also, I don&apos;t know if it&apos;s customary to r- patches that have already been submitted?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417697</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2011-06-08 16:58:06 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; this should be protected or private!!  notice how this class deletes itself.
&gt; &gt; no one else should be deleting this class.
&gt; 
&gt; https://bugs.webkit.org/show_bug.cgi?id=62341
&gt; 
&gt; (Note that it was public before, so I didn&apos;t really change this.)

Right, but a quick inspection reveals that this callback is intended to only delete itself.  I just think that&apos;s an important convention to preserve.

Sorry if the R- comes off as harsh.  It is just how I would have responded had the patch not yet been committed.  (Didn&apos;t realize the patch was in the tree.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417699</commentid>
    <comment_count>10</comment_count>
    <who name="Nico Weber">thakis</who>
    <bug_when>2011-06-08 17:05:34 -0700</bug_when>
    <thetext>&gt; Right, but a quick inspection reveals that this callback is intended to only delete itself.  I just think that&apos;s an important convention to preserve.

I went through all these changes I did in the last few days and made all destructors private that look like they should be private: https://bugs.webkit.org/show_bug.cgi?id=62341</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>95986</attachid>
            <date>2011-06-03 16:41:37 -0700</date>
            <delta_ts>2011-06-08 16:42:11 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-62067-20110603164136.patch</filename>
            <type>text/plain</type>
            <size>1482</size>
            <attacher name="Nico Weber">thakis</attac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orCisgICAgICAgICogc3JjL05vdGlmaWNh
dGlvblByZXNlbnRlckltcGwuY3BwOgorICAgICAgICAoV2ViS2l0OjpWb2lkQ2FsbGJhY2tDbGll
bnQ6On5Wb2lkQ2FsbGJhY2tDbGllbnQpOgorCiAyMDExLTA1LTI3ICBKb2NoZW4gRWlzaW5nZXIg
IDxqb2NoZW5AY2hyb21pdW0ub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IEFkYW0gQmFydGgu
CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L2Nocm9taXVtL3NyYy9Ob3RpZmljYXRpb25QcmVz
ZW50ZXJJbXBsLmNwcCBiL1NvdXJjZS9XZWJLaXQvY2hyb21pdW0vc3JjL05vdGlmaWNhdGlvblBy
ZXNlbnRlckltcGwuY3BwCmluZGV4IDE5MzE0NjViNjE0NjU0MTM3YmExMmFlMGIyNDIwODQzNzJj
N2Q4MmIuLjE3OWY3NDk2YTc3YmYzMDFhMTNkN2NiZjlhNjU3ZjdhMjM2NjUzODIgMTAwNjQ0Ci0t
LSBhL1NvdXJjZS9XZWJLaXQvY2hyb21pdW0vc3JjL05vdGlmaWNhdGlvblByZXNlbnRlckltcGwu
Y3BwCisrKyBiL1NvdXJjZS9XZWJLaXQvY2hyb21pdW0vc3JjL05vdGlmaWNhdGlvblByZXNlbnRl
ckltcGwuY3BwCkBAIC01Niw2ICs1Niw4IEBAIHB1YmxpYzoKICAgICB7CiAgICAgfQogCisgICAg
dmlydHVhbCB+Vm9pZENhbGxiYWNrQ2xpZW50KCkgeyB9CisKICAgICB2aXJ0dWFsIHZvaWQgcGVy
bWlzc2lvblJlcXVlc3RDb21wbGV0ZSgpCiAgICAgewogICAgICAgICBpZiAobV9jYWxsYmFjaykK
</data>
<flag name="review"
          id="90214"
          type_id="1"
          status="-"
          setter="fishd"
    />
          </attachment>
      

    </bug>

</bugzilla>