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

Issue 8738001: Remove BindStateHolder and have Bind() return a Callback<> object directly. (Closed)

Created:
9 years ago by awong
Modified:
9 years ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, willchan no longer on Chromium, benjhayden
Visibility:
Public.

Description

Remove BindStateHolder and have Bind() return a Callback<> object directly. This removes some complexity and also fixes a bug where if you call Bind() with the result of Bind(), the resulting Callback would only be valid during the first call. Ouch. BUG=none TEST=new unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114494

Patch Set 1 #

Patch Set 2 : Fix callback_unittest.cc #

Total comments: 17

Patch Set 3 : Address Fred's comments #

Patch Set 4 : Fix silly namespace mistake #

Patch Set 5 : Static type safety fixes. #

Patch Set 6 : more compile fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -281 lines) Patch
M base/bind.h View 11 chunks +94 lines, -77 lines 0 comments Download
M base/bind.h.pump View 2 chunks +10 lines, -7 lines 0 comments Download
M base/bind_unittest.cc View 1 2 3 4 5 2 chunks +27 lines, -0 lines 0 comments Download
M base/callback.h View 1 2 3 4 5 9 chunks +93 lines, -105 lines 0 comments Download
M base/callback.h.pump View 1 2 3 4 5 3 chunks +30 lines, -28 lines 0 comments Download
M base/callback_internal.h View 1 2 3 4 5 2 chunks +5 lines, -25 lines 0 comments Download
M base/callback_internal.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M base/callback_unittest.cc View 1 2 3 4 chunks +29 lines, -7 lines 0 comments Download
M base/cancelable_callback.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M base/debug/trace_event.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M base/debug/trace_event.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M base/test/trace_event_analyzer_unittest.cc View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/base/demuxer_stream.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/base/completion_callback.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A net/base/completion_callback.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M net/base/cookie_monster_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/base/cookie_store_test_helpers.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/base/cookie_store_test_helpers.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_proxy_client_socket.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M net/socket/web_socket_server_socket.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
awong
Fred, your turn!
9 years ago (2011-11-30 01:36:14 UTC) #1
benjhayden
9 years ago (2011-11-30 19:29:03 UTC) #2
awong
ping-pong! This should be a relatively simple change...I basically make everything take a BindState* instead ...
9 years ago (2011-12-01 19:07:29 UTC) #3
akalin
On 2011/12/01 19:07:29, awong wrote: > ping-pong! > > This should be a relatively simple ...
9 years ago (2011-12-02 18:37:21 UTC) #4
akalin
mostly nits, but one question http://codereview.chromium.org/8738001/diff/1001/base/bind_unittest.cc File base/bind_unittest.cc (right): http://codereview.chromium.org/8738001/diff/1001/base/bind_unittest.cc#newcode295 base/bind_unittest.cc:295: // Test that curring ...
9 years ago (2011-12-02 18:54:45 UTC) #5
awong
sorry for the latency...here's the next draft. http://codereview.chromium.org/8738001/diff/1001/base/bind_unittest.cc File base/bind_unittest.cc (right): http://codereview.chromium.org/8738001/diff/1001/base/bind_unittest.cc#newcode295 base/bind_unittest.cc:295: // Test ...
9 years ago (2011-12-06 00:21:12 UTC) #6
akalin
LGTM, although the trybot failures look legit http://codereview.chromium.org/8738001/diff/1001/base/bind_unittest.cc File base/bind_unittest.cc (right): http://codereview.chromium.org/8738001/diff/1001/base/bind_unittest.cc#newcode295 base/bind_unittest.cc:295: // Test ...
9 years ago (2011-12-06 17:57:57 UTC) #7
awong
On 2011/12/06 17:57:57, akalin wrote: > LGTM, although the trybot failures look legit > > ...
9 years ago (2011-12-08 20:08:11 UTC) #8
awong
I needed to fix some type safety strictness issues. @willchan: net/* + base/* is yours. ...
9 years ago (2011-12-13 02:22:07 UTC) #9
willchan no longer on Chromium
lgtm
9 years ago (2011-12-13 02:29:13 UTC) #10
acolwell GONE FROM CHROMIUM
LGTM Do we get compile errors now for what was happening in the media code ...
9 years ago (2011-12-13 02:47:16 UTC) #11
awong
On Mon, Dec 12, 2011 at 6:47 PM, <acolwell@chromium.org> wrote: > LGTM > > Do ...
9 years ago (2011-12-13 02:56:39 UTC) #12
awong
akalin: added new code to the sync/* section. Mind taking another look?
9 years ago (2011-12-13 20:06:23 UTC) #13
akalin
On 2011/12/13 20:06:23, awong wrote: > akalin: added new code to the sync/* section. Mind ...
9 years ago (2011-12-14 20:20:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/8738001/22001
9 years ago (2011-12-14 20:21:10 UTC) #15
commit-bot: I haz the power
Change committed as 114494
9 years ago (2011-12-14 21:34:01 UTC) #16
sail
9 years ago (2011-12-14 21:49:28 UTC) #17

Powered by Google App Engine
This is Rietveld 408576698