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

Issue 10702137: Replaced static URLRequestHTTPJob factory with non-static protocol handler for HTTP jobs. (Closed)

Created:
8 years, 5 months ago by shalev
Modified:
5 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Replaced static URLRequestHTTPJob factory with non-static protocol handler for HTTP jobs. BUG=None TEST=None

Patch Set 1 #

Patch Set 2 : changed the way protocol handlers are set in profile_impl #

Total comments: 8

Patch Set 3 : Fixed nits #

Total comments: 12

Patch Set 4 : Fixed nits #

Total comments: 14

Patch Set 5 : Fixes requested in comments #

Total comments: 2

Patch Set 6 : Moved DCHECK to constructor #

Total comments: 1

Patch Set 7 : Hack to fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -88 lines) Patch
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 3 chunks +36 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 3 chunks +53 lines, -8 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A net/url_request/http_protocol_handler.h View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
A net/url_request/http_protocol_handler.cc View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 2 3 4 5 6 4 chunks +28 lines, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 16 chunks +83 lines, -70 lines 0 comments Download
M net/url_request/url_request_job_manager.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
erikwright (departed)
LGTM. http://codereview.chromium.org/10702137/diff/8001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10702137/diff/8001/chrome/browser/profiles/profile_impl_io_data.cc#newcode497 chrome/browser/profiles/profile_impl_io_data.cc:497: job_factories[1], media_request_context_->ftp_auth_cache(), Nit: this wrapping is non-conforming. Put ...
8 years, 5 months ago (2012-07-17 19:42:45 UTC) #1
shalev
Hi Matt, Could you take a look at this? Thanks, Shalev http://codereview.chromium.org/10702137/diff/8001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): ...
8 years, 5 months ago (2012-07-17 20:20:18 UTC) #2
mmenke
http://codereview.chromium.org/10702137/diff/4002/chrome/browser/profiles/off_the_record_profile_io_data.cc File chrome/browser/profiles/off_the_record_profile_io_data.cc (right): http://codereview.chromium.org/10702137/diff/4002/chrome/browser/profiles/off_the_record_profile_io_data.cc#newcode274 chrome/browser/profiles/off_the_record_profile_io_data.cc:274: NULL, Same comment about this being NULL as in ...
8 years, 5 months ago (2012-07-18 16:21:53 UTC) #3
shalev
http://codereview.chromium.org/10702137/diff/4002/chrome/browser/profiles/off_the_record_profile_io_data.cc File chrome/browser/profiles/off_the_record_profile_io_data.cc (right): http://codereview.chromium.org/10702137/diff/4002/chrome/browser/profiles/off_the_record_profile_io_data.cc#newcode274 chrome/browser/profiles/off_the_record_profile_io_data.cc:274: NULL, On 2012/07/18 16:21:53, Matt Menke wrote: > Same ...
8 years, 5 months ago (2012-07-23 21:00:21 UTC) #4
mmenke
http://codereview.chromium.org/10702137/diff/14002/chrome/browser/profiles/off_the_record_profile_io_data.cc File chrome/browser/profiles/off_the_record_profile_io_data.cc (right): http://codereview.chromium.org/10702137/diff/14002/chrome/browser/profiles/off_the_record_profile_io_data.cc#newcode269 chrome/browser/profiles/off_the_record_profile_io_data.cc:269: transport_security_state())); Code looks fine to me, as-is, but I ...
8 years, 5 months ago (2012-07-24 15:24:34 UTC) #5
shalev
http://codereview.chromium.org/10702137/diff/14002/chrome/browser/profiles/off_the_record_profile_io_data.cc File chrome/browser/profiles/off_the_record_profile_io_data.cc (right): http://codereview.chromium.org/10702137/diff/14002/chrome/browser/profiles/off_the_record_profile_io_data.cc#newcode269 chrome/browser/profiles/off_the_record_profile_io_data.cc:269: transport_security_state())); On 2012/07/24 15:24:34, Matt Menke wrote: > Code ...
8 years, 5 months ago (2012-07-25 20:22:45 UTC) #6
mmenke
LGTM http://codereview.chromium.org/10702137/diff/14002/chrome/browser/profiles/off_the_record_profile_io_data.cc File chrome/browser/profiles/off_the_record_profile_io_data.cc (right): http://codereview.chromium.org/10702137/diff/14002/chrome/browser/profiles/off_the_record_profile_io_data.cc#newcode269 chrome/browser/profiles/off_the_record_profile_io_data.cc:269: transport_security_state())); On 2012/07/25 20:22:45, shalev wrote: > On ...
8 years, 5 months ago (2012-07-26 14:22:06 UTC) #7
shalev
Hi Will, Since you are an owner of profiles, could you give me a review ...
8 years, 5 months ago (2012-07-26 16:11:48 UTC) #8
mmenke
http://codereview.chromium.org/10702137/diff/21001/net/url_request/http_protocol_handler.cc File net/url_request/http_protocol_handler.cc (right): http://codereview.chromium.org/10702137/diff/21001/net/url_request/http_protocol_handler.cc#newcode37 net/url_request/http_protocol_handler.cc:37: DCHECK(http_transaction_factory_); Just making sure you saw this comment, since ...
8 years, 5 months ago (2012-07-26 16:14:14 UTC) #9
shalev
http://codereview.chromium.org/10702137/diff/14002/net/url_request/http_protocol_handler.cc File net/url_request/http_protocol_handler.cc (right): http://codereview.chromium.org/10702137/diff/14002/net/url_request/http_protocol_handler.cc#newcode41 net/url_request/http_protocol_handler.cc:41: return new URLRequestErrorJob(request, ERR_INVALID_ARGUMENT); On 2012/07/26 14:22:06, Matt Menke ...
8 years, 5 months ago (2012-07-26 17:45:39 UTC) #10
willchan no longer on Chromium
8 years, 4 months ago (2012-07-27 19:12:55 UTC) #11
http://codereview.chromium.org/10702137/diff/29001/chrome/browser/profiles/of...
File chrome/browser/profiles/off_the_record_profile_io_data.cc (right):

http://codereview.chromium.org/10702137/diff/29001/chrome/browser/profiles/of...
chrome/browser/profiles/off_the_record_profile_io_data.cc:264:
main_context->accept_language(),
I think this is a bug. accept_language and accept_charset can dynamically
change. See chrome_url_request_context.cc for how we observe preference change
notifications to adjust these values. We should not configure it only once on
startup.

If my analysis is correct, please fix this and add a regression test.

Powered by Google App Engine
This is Rietveld 408576698