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

Issue 9064007: base::Bind: Remove OldCompletionCallback. (Closed)

Created:
8 years, 11 months ago by James Hawkins
Modified:
8 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

base::Bind: Remove OldCompletionCallback. BUG=none TEST=none R=groby,awong,csilv Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116158

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review fixes. #

Total comments: 4

Patch Set 3 : Review fixes 2. #

Total comments: 24
Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -166 lines) Patch
M net/base/completion_callback.h View 1 2 2 chunks +3 lines, -54 lines 0 comments Download
D net/base/completion_callback.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M net/net.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/appcache/appcache_disk_cache.h View 1 2 3 chunks +5 lines, -19 lines 0 comments Download
M webkit/appcache/appcache_disk_cache.cc View 1 2 5 chunks +27 lines, -18 lines 4 comments Download
M webkit/appcache/appcache_response.h View 1 2 4 chunks +7 lines, -20 lines 3 comments Download
M webkit/appcache/appcache_response.cc View 1 2 6 chunks +49 lines, -41 lines 17 comments Download

Messages

Total messages: 17 (0 generated)
James Hawkins
8 years, 11 months ago (2012-01-02 16:54:20 UTC) #1
groby-ooo-7-16
LGTM w/ nits http://codereview.chromium.org/9064007/diff/1/net/base/completion_callback.h File net/base/completion_callback.h (right): http://codereview.chromium.org/9064007/diff/1/net/base/completion_callback.h#newcode11 net/base/completion_callback.h:11: #include "net/base/net_export.h" Don't need that one ...
8 years, 11 months ago (2012-01-03 18:32:25 UTC) #2
James Hawkins
http://codereview.chromium.org/9064007/diff/1/net/base/completion_callback.h File net/base/completion_callback.h (right): http://codereview.chromium.org/9064007/diff/1/net/base/completion_callback.h#newcode11 net/base/completion_callback.h:11: #include "net/base/net_export.h" On 2012/01/03 18:32:25, groby wrote: > Don't ...
8 years, 11 months ago (2012-01-03 18:39:20 UTC) #3
James Hawkins
Going off PS1 tryjobs since the PS2 changes are trivial.
8 years, 11 months ago (2012-01-03 18:39:36 UTC) #4
groby-ooo-7-16
lgtm
8 years, 11 months ago (2012-01-03 18:40:25 UTC) #5
csilv
lgtm http://codereview.chromium.org/9064007/diff/9001/net/base/completion_callback.h File net/base/completion_callback.h (right): http://codereview.chromium.org/9064007/diff/9001/net/base/completion_callback.h#newcode1 net/base/completion_callback.h:1: // Copyright (c) 2011 The Chromium Authors. All ...
8 years, 11 months ago (2012-01-03 18:47:29 UTC) #6
James Hawkins
http://codereview.chromium.org/9064007/diff/9001/net/base/completion_callback.h File net/base/completion_callback.h (right): http://codereview.chromium.org/9064007/diff/9001/net/base/completion_callback.h#newcode1 net/base/completion_callback.h:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 11 months ago (2012-01-03 18:49:34 UTC) #7
michaeln
Looks like this change may be crashing some layout tests. http://code.google.com/p/chromium/issues/detail?id=109077 http://code.google.com/p/chromium/issues/detail?id=109068
8 years, 11 months ago (2012-01-04 01:26:07 UTC) #8
awong
Got some style nits. http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_response.cc File webkit/appcache/appcache_response.cc (right): http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_response.cc#newcode362 webkit/appcache/appcache_response.cc:362: AppCacheDiskCacheInterface::Entry** entry_ptr = NULL; Move ...
8 years, 11 months ago (2012-01-04 01:50:28 UTC) #9
awong
@michaeln: Could you clarify which stack trace are you looking at which makes you think ...
8 years, 11 months ago (2012-01-04 01:54:23 UTC) #10
michaeln
http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_disk_cache.cc File webkit/appcache/appcache_disk_cache.cc (right): http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_disk_cache.cc#newcode133 webkit/appcache/appcache_disk_cache.cc:133: create_backend_callback_.Cancel(); will this call to Cancel() delete storage for ...
8 years, 11 months ago (2012-01-04 02:07:17 UTC) #11
michaeln
I'm looking at the same stack, looks like the method could be running on a ...
8 years, 11 months ago (2012-01-04 02:19:01 UTC) #12
michaeln
and here http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Finspector%2Fappcache%2Fappcache-swap.html
8 years, 11 months ago (2012-01-04 02:28:40 UTC) #13
michaeln
those links don't work very well with the extra escaping... try these... http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http/tests/inspector/appcache/appcache-swap.html http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http/tests/appcache/interrupted-update.html
8 years, 11 months ago (2012-01-04 02:33:29 UTC) #14
James Hawkins
http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_disk_cache.cc File webkit/appcache/appcache_disk_cache.cc (right): http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_disk_cache.cc#newcode133 webkit/appcache/appcache_disk_cache.cc:133: create_backend_callback_.Cancel(); On 2012/01/04 02:07:17, michaeln wrote: > will this ...
8 years, 11 months ago (2012-01-05 22:32:51 UTC) #15
James Hawkins
These fixes done in http://codereview.chromium.org/9110017 http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_response.cc File webkit/appcache/appcache_response.cc (right): http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_response.cc#newcode148 webkit/appcache/appcache_response.cc:148: AppCacheResponseReader::~AppCacheResponseReader() { On 2012/01/04 ...
8 years, 11 months ago (2012-01-05 22:44:56 UTC) #16
michaeln
8 years, 11 months ago (2012-01-05 23:34:48 UTC) #17
http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_di...
File webkit/appcache/appcache_disk_cache.cc (right):

http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_di...
webkit/appcache/appcache_disk_cache.cc:133: create_backend_callback_.Cancel();
> I think you're right, but I also think this bug exists in the previous code.
> 
> CreateBackendCallback::backend_ptr is deleted on release().
> 
> Is that correct?

Don't think so. Like we chatted about, the old CancelableOldCompletionCallback
infrastructure voodoo kept the CreateBackendCallback class alive till it was no
longer needed.

http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_re...
File webkit/appcache/appcache_response.cc (right):

http://codereview.chromium.org/9064007/diff/11002/webkit/appcache/appcache_re...
webkit/appcache/appcache_response.cc:148:
AppCacheResponseReader::~AppCacheResponseReader() {
On 2012/01/05 22:44:56, James Hawkins wrote:
> On 2012/01/04 02:07:17, michaeln wrote:
> > Is disk_cache_->OpenEntry() 'copy' of the callback still valid  after this
> dtor
> > has returned? 
> 
> No, because of the WeakPtr.

Great, so AppCacheResponseReader::OnOpenEntryComplete won't get called.

More pointedly, is the heap allocated 'entry_ptr' param held via base::OwnPtr by
the disk_cache's copy/ref of the bind closure still valid after this dtor? I
expect it is, just checking?

Powered by Google App Engine
This is Rietveld 408576698