Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Issue 19731002: [SPDY] Use WeakPtr<HttpServerProperties> instead of raw pointers (Closed)

Created:
7 years, 5 months ago by akalin
Modified:
7 years, 5 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, jam, garykac+watch_chromium.org, joi+watch-content_chromium.org, eroman, darin-cc_chromium.org, jochen+watch_chromium.org, weitaosu+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org, mmenke, lambroslambrou+watch_chromium.org
Visibility:
Public.

Description

[SPDY] Use WeakPtr<HttpServerProperties> instead of raw pointers This will let us better track down what is causing SpdySessions to be accessing them after they're destroyed, since we'll have crash reports instead of just the SyzyASAN reports. Also use scoped_ptr<HttpServerProperties> when appropriate. BUG=236451 [email protected], [email protected], [email protected], [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212466

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -103 lines) Patch
M chrome/browser/io_thread.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/net/connection_tester_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/http_server_properties_manager.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/net/http_server_properties_manager.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/net/service_url_request_context.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M net/http/http_network_layer_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_network_session.h View 5 chunks +5 lines, -3 lines 0 comments Download
M net/http/http_network_session.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/http/http_network_transaction.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M net/http/http_network_transaction_ssl_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_network_transaction_unittest.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M net/http/http_pipelined_host_pool.h View 3 chunks +7 lines, -5 lines 0 comments Download
M net/http/http_pipelined_host_pool.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_pipelined_host_pool_unittest.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M net/http/http_pipelined_network_transaction_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_response_body_drainer_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_server_properties.h View 2 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_server_properties_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 2 chunks +6 lines, -1 line 0 comments Download
M net/http/http_stream_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/quic/quic_network_transaction_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/spdy/spdy_session.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 chunk +15 lines, -14 lines 0 comments Download
M net/spdy/spdy_session_pool.h View 4 chunks +18 lines, -16 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M net/tools/fetch/fetch_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_context.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M net/url_request/url_request_context_storage.h View 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/url_request_context_storage.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/base/url_request_context.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M webkit/support/test_shell_request_context.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
akalin
+rtenneti for review
7 years, 5 months ago (2013-07-18 05:18:04 UTC) #1
ramant (doing other things)
lgtm
7 years, 5 months ago (2013-07-18 06:05:18 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/19731002/1
7 years, 5 months ago (2013-07-18 11:10:54 UTC) #3
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=15874
7 years, 5 months ago (2013-07-18 11:24:02 UTC) #4
akalin
+wez for remoting +jochen for content/shell +simonjam for content/browser/loader +ajwong for chrome/service and chrome/browser/profiles +eroman ...
7 years, 5 months ago (2013-07-18 17:50:28 UTC) #5
James Simonsen
lgtm
7 years, 5 months ago (2013-07-18 18:12:33 UTC) #6
awong
https://codereview.chromium.org/19731002/diff/1/chrome/browser/net/connection_tester.cc File chrome/browser/net/connection_tester.cc (right): https://codereview.chromium.org/19731002/diff/1/chrome/browser/net/connection_tester.cc#newcode118 chrome/browser/net/connection_tester.cc:118: new net::HttpServerPropertiesImpl)); nit:new net::HttpServletPropertiesImpl() https://codereview.chromium.org/19731002/diff/1/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): https://codereview.chromium.org/19731002/diff/1/chrome/browser/net/http_server_properties_manager.cc#newcode69 ...
7 years, 5 months ago (2013-07-18 18:13:56 UTC) #7
Wez
https://codereview.chromium.org/19731002/diff/1/remoting/base/url_request_context.cc File remoting/base/url_request_context.cc (right): https://codereview.chromium.org/19731002/diff/1/remoting/base/url_request_context.cc#newcode94 remoting/base/url_request_context.cc:94: scoped_ptr<net::HttpServerProperties>( I expect I'm being dense, but why is ...
7 years, 5 months ago (2013-07-18 18:53:57 UTC) #8
akalin
PTAL https://codereview.chromium.org/19731002/diff/1/chrome/browser/net/connection_tester.cc File chrome/browser/net/connection_tester.cc (right): https://codereview.chromium.org/19731002/diff/1/chrome/browser/net/connection_tester.cc#newcode118 chrome/browser/net/connection_tester.cc:118: new net::HttpServerPropertiesImpl)); On 2013/07/18 18:13:57, awong wrote: > ...
7 years, 5 months ago (2013-07-18 20:34:29 UTC) #9
Wez
https://codereview.chromium.org/19731002/diff/1/remoting/base/url_request_context.cc File remoting/base/url_request_context.cc (right): https://codereview.chromium.org/19731002/diff/1/remoting/base/url_request_context.cc#newcode94 remoting/base/url_request_context.cc:94: scoped_ptr<net::HttpServerProperties>( On 2013/07/18 20:34:29, akalin wrote: > On 2013/07/18 ...
7 years, 5 months ago (2013-07-18 21:03:37 UTC) #10
awong
lgtm https://codereview.chromium.org/19731002/diff/1/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): https://codereview.chromium.org/19731002/diff/1/chrome/browser/net/http_server_properties_manager.cc#newcode69 chrome/browser/net/http_server_properties_manager.cc:69: HttpServerPropertiesManager::~HttpServerPropertiesManager() { On 2013/07/18 20:34:29, akalin wrote: > ...
7 years, 5 months ago (2013-07-18 21:06:13 UTC) #11
akalin
TBRing everyone else
7 years, 5 months ago (2013-07-18 21:19:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/19731002/18001
7 years, 5 months ago (2013-07-18 21:19:57 UTC) #13
akalin
7 years, 5 months ago (2013-07-18 22:58:50 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 manually as r212466 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698