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

Issue 10962010: Fix asan test failure in P2PSocketClient::Init. Make sure P2PSocketClient::Init only access |deleg… (Closed)

Created:
8 years, 3 months ago by perkj_chrome
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix asan test failure in P2PSocketClient::Init. Make sure P2PSocketClient::Init only access |delegate_| on the delegate_message_loop_. Please see the bug for more information. BUG=150842 TEST= https://apprtc.appspot.com/?r&debug=loopback - I have not been able to reproduce the problem with asan since it will very rarely happen. TBR=sergeyu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157944

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix init. #

Total comments: 1

Patch Set 3 : Rebase to latest code base. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -7 lines) Patch
M content/renderer/p2p/socket_client.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/p2p/socket_client.cc View 1 6 chunks +17 lines, -7 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
perkj_chrome
Hi - can you please review this fix?
8 years, 3 months ago (2012-09-20 11:40:26 UTC) #1
tommi (sloooow) - chröme
http://codereview.chromium.org/10962010/diff/1/content/renderer/p2p/socket_client.cc File content/renderer/p2p/socket_client.cc (right): http://codereview.chromium.org/10962010/diff/1/content/renderer/p2p/socket_client.cc#newcode31 content/renderer/p2p/socket_client.cc:31: DCHECK(delegate_message_loop_->BelongsToCurrentThread()); if the delegate and ipc threads are not ...
8 years, 3 months ago (2012-09-20 11:48:44 UTC) #2
perkj_chrome
PTAL - Sorry- I sent out the first patch for review to early. http://codereview.chromium.org/10962010/diff/1/content/renderer/p2p/socket_client.cc File ...
8 years, 3 months ago (2012-09-20 12:22:32 UTC) #3
tommi (sloooow) - chröme
lgtm. very nice. One question below which you can address or not depending on what's ...
8 years, 3 months ago (2012-09-20 13:47:46 UTC) #4
perkj_chrome
Sergey- I hope you don't mind if we land while you are oo. I can ...
8 years, 3 months ago (2012-09-20 15:36:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10962010/5001
8 years, 3 months ago (2012-09-20 15:37:12 UTC) #6
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
8 years, 3 months ago (2012-09-20 19:07:45 UTC) #7
Sergey Ulanov
8 years, 2 months ago (2012-09-26 16:32:38 UTC) #8
LGTM with a couple of minor nits.

http://codereview.chromium.org/10962010/diff/2002/content/renderer/p2p/socket...
File content/renderer/p2p/socket_client.cc (right):

http://codereview.chromium.org/10962010/diff/2002/content/renderer/p2p/socket...
content/renderer/p2p/socket_client.cc:43: DCHECK_EQ(state_,
STATE_UNINITIALIZED);
Add DCHECK here to make sure we are on IPC thread.

http://codereview.chromium.org/10962010/diff/2002/content/renderer/p2p/socket...
content/renderer/p2p/socket_client.cc:44: DCHECK(delegate_);
nit: delegate_ should be used only on the delegate thread, so it's not correct
to check it here. ASan may show warning about it.

Powered by Google App Engine
This is Rietveld 408576698