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

Issue 10299002: Stop refcounting URLRequestContext. (Closed)

Created:
8 years, 7 months ago by willchan no longer on Chromium
Modified:
8 years, 7 months ago
Reviewers:
cbentzel, eroman, jam
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, mihaip-chromium-reviews_chromium.org, akalin, Raghu Simha, kkania, ncarter (slow), jam, joi+watch-content_chromium.org, Aaron Boodman, robertshield, Paweł Hajdan Jr., darin-cc_chromium.org, kinuko+watch, tim (not reviewing)
Visibility:
Public.

Description

Stop refcounting URLRequestContext. While doing so, fix a few issues with the code like ordering of URLRequestContext to ensure correct destruction order. Also fix const correctness in some places. BUG=58859 TEST=none TBR=willchan Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136497

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : Much closer. #

Patch Set 4 : Fix Android too. #

Patch Set 5 : Oops. #

Patch Set 6 : Merge and fix more build errors. #

Patch Set 7 : More fixes #

Patch Set 8 : More fixes #

Patch Set 9 : More fixes #

Patch Set 10 : More fixes #

Patch Set 11 : More fixes #

Total comments: 12

Patch Set 12 : Did I fix everything? #

Patch Set 13 : Curse you windows #

Patch Set 14 : Curse you windows #

Patch Set 15 : Curse you windows #

Patch Set 16 : Curse you windows #

Patch Set 17 : WINDOZE #

Patch Set 18 : Fix leaks. #

Patch Set 19 : Fix RDH test #

Patch Set 20 : Fix some silly leaks. #

Patch Set 21 : Fix dumb destruction ordering. #

Patch Set 22 : Fix tests. #

Patch Set 23 : Fix last leak? #

Patch Set 24 : Fix last leak? #

Patch Set 25 : Merge #

Patch Set 26 : Initialize to NULL #

Patch Set 27 : Initialize to NULL #

Patch Set 28 : Initialize to NULL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+839 lines, -877 lines) Patch
chrome/browser/automation/automation_resource_message_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data_server_bound_cert_helper_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 6 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc View 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/net/connection_tester.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 2 3 4 5 6 6 chunks +10 lines, -13 lines 0 comments Download
M chrome/browser/net/connection_tester_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/device_management_service.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 5 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 chunks +16 lines, -15 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/net/service_url_request_context.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/service/net/service_url_request_context.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +3 lines, -4 lines 0 comments Download
M content/browser/browser_process_sub_thread.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/browser_process_sub_thread.cc View 2 chunks +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/net/url_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -7 lines 0 comments Download
M content/shell/shell_url_request_context_getter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +5 lines, -4 lines 0 comments Download
M content/test/mock_resource_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -7 lines 0 comments Download
M content/test/mock_resource_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -5 lines 0 comments Download
M content/test/webrtc_audio_device_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +30 lines, -5 lines 0 comments Download
M net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -4 lines 0 comments Download
M net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M net/proxy/dhcp_proxy_script_fetcher_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +9 lines, -9 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl.h View 1 chunk +1 line, -1 line 0 comments Download
net/proxy/proxy_script_fetcher_impl.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 11 chunks +15 lines, -19 lines 0 comments Download
M net/socket_stream/socket_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +3 lines, -3 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +3 lines, -2 lines 0 comments Download
M net/socket_stream/socket_stream_job.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket_stream/socket_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 9 chunks +17 lines, -9 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +9 lines, -11 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy3_unittest.cc View 3 chunks +9 lines, -11 lines 0 comments Download
M net/spdy/spdy_test_util_spdy2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -3 lines 0 comments Download
M net/spdy/spdy_test_util_spdy3.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -3 lines 0 comments Download
M net/test/spawner_communicator.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/test/spawner_communicator.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +4 lines, -3 lines 0 comments Download
M net/url_request/url_request_context.h View 1 2 3 4 5 3 chunks +3 lines, -14 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +5 lines, -6 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_context_builder_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_ftp_job.h View 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_request_ftp_job.cc View 1 chunk +0 lines, -1 line 0 comments Download
net/url_request/url_request_http_job.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 chunks +10 lines, -11 lines 0 comments Download
net/url_request/url_request_job_factory_unittest.cc View 7 chunks +22 lines, -22 lines 0 comments Download
net/url_request/url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -10 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +5 lines, -4 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +8 lines, -5 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 147 chunks +394 lines, -397 lines 0 comments Download
M net/url_request/view_cache_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/view_cache_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -1 line 0 comments Download
M net/url_request/view_cache_helper_unittest.cc View 6 chunks +15 lines, -17 lines 0 comments Download
M net/websockets/websocket_job_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +3 lines, -5 lines 0 comments Download
M net/websockets/websocket_job_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +3 lines, -5 lines 0 comments Download
M net/websockets/websocket_throttle_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 9 chunks +9 lines, -9 lines 0 comments Download
M remoting/host/url_request_context.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/url_request_context.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M webkit/appcache/appcache_update_job_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M webkit/fileapi/file_system_operation_write_unittest.cc View 11 chunks +32 lines, -41 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +1 line, -3 lines 0 comments Download
M webkit/tools/test_shell/simple_socket_stream_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
willchan no longer on Chromium
I have a few ownership bugs to sort out, but I'm mostly done. It's ready ...
8 years, 7 months ago (2012-05-04 02:12:09 UTC) #1
eroman
LGTM. What has your testing strategy been? Be sure to run through the valgrind try-bots, ...
8 years, 7 months ago (2012-05-04 04:27:02 UTC) #2
cbentzel
I didn't look at the code at all, but the Subject of this CL makes ...
8 years, 7 months ago (2012-05-04 14:44:39 UTC) #3
willchan no longer on Chromium
OK, I think I've fixed all test errors. I'm hitting the valgrind/drmemory bots too. I ...
8 years, 7 months ago (2012-05-04 21:47:40 UTC) #4
willchan no longer on Chromium
Just to be clear, my target land date is *after* the milestone branch.
8 years, 7 months ago (2012-05-04 21:48:07 UTC) #5
willchan no longer on Chromium
+jam: FYI I'm going to TBR this after the branch point. The night before, I'll ...
8 years, 7 months ago (2012-05-08 02:29:23 UTC) #6
willchan no longer on Chromium
Initialize to NULL
8 years, 7 months ago (2012-05-10 17:46:59 UTC) #7
willchan no longer on Chromium
Initialize to NULL
8 years, 7 months ago (2012-05-10 17:47:35 UTC) #8
willchan no longer on Chromium
Initialize to NULL
8 years, 7 months ago (2012-05-10 17:52:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/willchan@chromium.org/10299002/39095
8 years, 7 months ago (2012-05-10 17:54:53 UTC) #10
commit-bot: I haz the power
Try job failure for 10299002-39095 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-10 18:30:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/willchan@chromium.org/10299002/39095
8 years, 7 months ago (2012-05-10 18:42:21 UTC) #12
commit-bot: I haz the power
Try job failure for 10299002-39095 (retry) on win for step "update" (clobber build). It's a ...
8 years, 7 months ago (2012-05-10 19:42:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/willchan@chromium.org/10299002/39095
8 years, 7 months ago (2012-05-10 19:49:46 UTC) #14
commit-bot: I haz the power
Try job failure for 10299002-39095 (retry) on android for steps "Compile, build". It's a second ...
8 years, 7 months ago (2012-05-10 20:16:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/willchan@chromium.org/10299002/39095
8 years, 7 months ago (2012-05-11 01:31:49 UTC) #16
commit-bot: I haz the power
8 years, 7 months ago (2012-05-11 03:27:22 UTC) #17
Change committed as 136497

Powered by Google App Engine
This is Rietveld 408576698