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

Issue 316008: Make WebSocketStreamHandleBridge RefCountedThreadSafe. (Closed)

Created:
11 years, 2 months ago by ukai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Make WebSocketStreamHandleBridge RefCountedThreadSafe. In layout_tests, test_shell crashed by /base/ref_counted.cc(60)] Check failed: in_dtor_. RefCountedThreadSafe object deleted without calling Release() in context of test_shell(webkit_glue::WebSocketStreamHandleImpl::Context::DidClose(WebKit::WebSocketStreamHandle*)+0x7d) [0x8f6b34b] Since bridge instance is ref counted object, we must not delete it. Make base class WebSocketStreamHandleBridge RefCountedThreadSafe, and manage it by scoped_refptr. BUG=25399 TEST=layout tests not crashed in XHR tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29769

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M webkit/glue/websocketstreamhandle_bridge.h View 3 chunks +5 lines, -3 lines 0 comments Download
M webkit/glue/websocketstreamhandle_impl.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/simple_socket_stream_bridge.cc View 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ukai
11 years, 2 months ago (2009-10-22 11:15:31 UTC) #1
ukai
didn't crash in layout_tests http://build.chromium.org/buildbot/try-server/builders/layout_linux/builds/349/steps/webkit_tests/logs/stdio
11 years, 2 months ago (2009-10-22 11:32:03 UTC) #2
Yuzo
LGTM
11 years, 2 months ago (2009-10-22 11:33:26 UTC) #3
tyoshino (SeeGerritForStatus)
11 years, 2 months ago (2009-10-23 01:57:26 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698