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

Issue 2428143002: Clean up FtpTransactionFacory ownership. (Closed)

Created:
4 years, 2 months ago by mmenke
Modified:
4 years, 2 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up FtpTransactionFacory ownership. Previously, it was owned by the ProfileImplIOData, which is deleted before the ProfileIOData, which owns the URLRequestContext. Now it's owned by the FtpProtocolHandler, which is owned by the URLRequestJobFactory. This also makes URLRequestContext creation a bit simpler. With this CL, isolated app URLRequestContexts now have their own FtpTransactionFactories. Since FTP connections aren't pooled, and the FTP auth cache is owned by a higher layer, this effectively makes no difference. BUG=657135 Committed: https://crrev.com/cd4c75339e11e32ef36da7a856a19ca8ee3976f1 Cr-Commit-Position: refs/heads/master@{#426248}

Patch Set 1 #

Patch Set 2 : Oops #

Total comments: 10

Patch Set 3 : Response to comments #

Total comments: 4

Patch Set 4 : --typos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -83 lines) Patch
M chrome/browser/io_thread.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/io_thread.cc View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 5 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 5 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M net/ftp/ftp_network_layer.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M net/url_request/ftp_protocol_handler.h View 3 chunks +16 lines, -2 lines 0 comments Download
M net/url_request/ftp_protocol_handler.cc View 1 2 3 chunks +21 lines, -8 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 chunk +0 lines, -3 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M net/url_request/url_request_ftp_job_unittest.cc View 4 chunks +20 lines, -22 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (16 generated)
mmenke
While this isn't causing a crash, having the FtpTransactionFactory destroyed before the ProfileIOData's URLRequestContext is ...
4 years, 2 months ago (2016-10-19 15:26:56 UTC) #12
eroman
lgtm https://chromiumcodereview.appspot.com/2428143002/diff/20001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://chromiumcodereview.appspot.com/2428143002/diff/20001/chrome/browser/profiles/profile_impl_io_data.cc#newcode710 chrome/browser/profiles/profile_impl_io_data.cc:710: main_context->network_delegate(), main_context->host_resolver())); I think this would be clearer ...
4 years, 2 months ago (2016-10-19 16:29:51 UTC) #13
mmenke
Comments were spot on, as usual. https://chromiumcodereview.appspot.com/2428143002/diff/20001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://chromiumcodereview.appspot.com/2428143002/diff/20001/chrome/browser/profiles/profile_impl_io_data.cc#newcode710 chrome/browser/profiles/profile_impl_io_data.cc:710: main_context->network_delegate(), main_context->host_resolver())); On ...
4 years, 2 months ago (2016-10-19 17:09:35 UTC) #15
eroman
lgtm https://chromiumcodereview.appspot.com/2428143002/diff/40001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): https://chromiumcodereview.appspot.com/2428143002/diff/40001/chrome/browser/profiles/profile_io_data.h#newcode365 chrome/browser/profiles/profile_io_data.h:365: // ProtocolHandlers to |job_factory|, adds URLRequestIntercetors in front ...
4 years, 2 months ago (2016-10-19 17:15:15 UTC) #17
mmenke
Thanks! https://chromiumcodereview.appspot.com/2428143002/diff/40001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): https://chromiumcodereview.appspot.com/2428143002/diff/40001/chrome/browser/profiles/profile_io_data.h#newcode365 chrome/browser/profiles/profile_io_data.h:365: // ProtocolHandlers to |job_factory|, adds URLRequestIntercetors in front ...
4 years, 2 months ago (2016-10-19 17:20:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2428143002/60001
4 years, 2 months ago (2016-10-19 17:21:07 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-19 18:36:37 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:10:21 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cd4c75339e11e32ef36da7a856a19ca8ee3976f1
Cr-Commit-Position: refs/heads/master@{#426248}

Powered by Google App Engine
This is Rietveld 408576698