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

Issue 10559036: Added URLRequestContext to constructor for URLRequest. (Closed)

Created:
8 years, 6 months ago by shalev
Modified:
8 years, 6 months ago
CC:
chromium-reviews, amit, stuartmorgan+watch_chromium.org, kinuko+watch, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, grt+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, michaeln, jochen+watch-content_chromium.org, wez+watch_chromium.org, sanjeevr, simonmorris+watch_chromium.org, pam+watch_chromium.org, sergeyu+watch_chromium.org, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, mihaip-chromium-reviews_chromium.org, garykac+watch_chromium.org, Aaron Boodman, lambroslambrou+watch_chromium.org, robertshield, rdsmith+dwatch_chromium.org, alexeypa+watch_chromium.org, willchan no longer on Chromium
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added URLRequestContext to constructor for URLRequest. Previously, the context was set using the member function set_context. Note that the context for a URLRequest is not allowed to be null. BUG=81979 TEST=None TBR=ajwong,brettw,vitalybuka,sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143595

Patch Set 1 #

Patch Set 2 : Updated unittests #

Total comments: 23

Patch Set 3 : Converted new unittest. #

Total comments: 27

Patch Set 4 : merged with latest version, fixed some bugs #

Total comments: 1

Patch Set 5 : Fixed android stuff, removed uneeded warnings. #

Total comments: 2

Patch Set 6 : Removed unused variable #

Total comments: 2

Patch Set 7 : Changed CHECK to CHECK_EQ. #

Patch Set 8 : Merged with latest version #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -497 lines) Patch
M chrome/browser/chromeos/gview_request_interceptor_unittest.cc View 1 2 3 4 9 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_unittest.cc View 1 2 3 5 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc View 1 2 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 2 5 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_protocols_unittest.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 2 6 chunks +18 lines, -7 lines 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/plugin_installer.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/intercept_navigation_resource_throttle_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector_browsertest.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome_frame/test/test_server_test.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M cloud_print/service/service_state.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/debugger/devtools_http_handler_impl.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 6 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M net/ocsp/nss_ocsp.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy2_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy3_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M net/test/spawner_communicator.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M net/url_request/url_request.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 4 chunks +20 lines, -39 lines 1 comment Download
M net/url_request/url_request_context_builder_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_job_factory_unittest.cc View 1 7 chunks +7 lines, -14 lines 0 comments Download
M net/url_request/url_request_job_unittest.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M net/url_request/url_request_throttler_simulation_unittest.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 135 chunks +218 lines, -276 lines 0 comments Download
M remoting/host/url_fetcher.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_request_handler_unittest.cc View 1 2 3 21 chunks +24 lines, -18 lines 0 comments Download
M webkit/appcache/appcache_update_job.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M webkit/appcache/appcache_url_request_job_unittest.cc View 1 8 chunks +16 lines, -6 lines 0 comments Download
M webkit/blob/blob_url_request_job_unittest.cc View 1 3 chunks +4 lines, -1 line 0 comments Download
M webkit/chromeos/fileapi/remote_file_system_operation.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job_unittest.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job_unittest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M webkit/fileapi/file_writer_delegate_unittest.cc View 1 4 chunks +8 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
erikwright (departed)
Looks pretty decent. A few comments for now. http://codereview.chromium.org/10559036/diff/2002/chrome/browser/net/chrome_fraudulent_certificate_reporter.h File chrome/browser/net/chrome_fraudulent_certificate_reporter.h (right): http://codereview.chromium.org/10559036/diff/2002/chrome/browser/net/chrome_fraudulent_certificate_reporter.h#newcode14 chrome/browser/net/chrome_fraudulent_certificate_reporter.h:14: forward ...
8 years, 6 months ago (2012-06-19 21:06:22 UTC) #1
Sergey Ulanov
http://codereview.chromium.org/10559036/diff/10002/remoting/host/url_fetcher.cc File remoting/host/url_fetcher.cc (right): http://codereview.chromium.org/10559036/diff/10002/remoting/host/url_fetcher.cc#newcode149 remoting/host/url_fetcher.cc:149: request_context_getter_->GetURLRequestContext())); all arguments can fit on one line. This ...
8 years, 6 months ago (2012-06-20 00:51:50 UTC) #2
willchan no longer on Chromium
I need to do a more thorough read to make sure you have destruction orders ...
8 years, 6 months ago (2012-06-20 02:42:59 UTC) #3
willchan no longer on Chromium
+mmenke Matt, can you take this? I'm out for most of today still, and don't ...
8 years, 6 months ago (2012-06-20 16:16:45 UTC) #4
mmenke
On 2012/06/20 16:16:45, willchan wrote: > +mmenke > > Matt, can you take this? I'm ...
8 years, 6 months ago (2012-06-20 16:20:31 UTC) #5
erikwright (departed)
On 2012/06/20 16:20:31, Matt Menke wrote: > On 2012/06/20 16:16:45, willchan wrote: > > +mmenke ...
8 years, 6 months ago (2012-06-20 16:49:53 UTC) #6
mmenke
http://codereview.chromium.org/10559036/diff/10002/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc File chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc (right): http://codereview.chromium.org/10559036/diff/10002/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc#newcode70 chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc:70: TestURLRequestContext context; Is there a reason you're using a ...
8 years, 6 months ago (2012-06-20 18:33:49 UTC) #7
erikwright (departed)
On 2012/06/20 18:33:49, Matt Menke wrote: > http://codereview.chromium.org/10559036/diff/10002/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc > File > chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc > (right): > ...
8 years, 6 months ago (2012-06-20 18:40:24 UTC) #8
mmenke
On 2012/06/20 18:40:24, erikwright wrote: > Hi Matt, > > Regarding the warnings, do you ...
8 years, 6 months ago (2012-06-20 18:48:11 UTC) #9
mmenke
On 2012/06/20 18:48:11, Matt Menke wrote: > On 2012/06/20 18:40:24, erikwright wrote: > > Hi ...
8 years, 6 months ago (2012-06-20 18:49:29 UTC) #10
erikwright (departed)
On 2012/06/20 18:49:29, Matt Menke wrote: > On 2012/06/20 18:48:11, Matt Menke wrote: > > ...
8 years, 6 months ago (2012-06-20 18:50:52 UTC) #11
shalev
Hi Matt, I made the fixes that you suggested. I did not add any of ...
8 years, 6 months ago (2012-06-20 20:13:11 UTC) #12
mmenke
I'll try and take another look at this tonight. If I don't have time for ...
8 years, 6 months ago (2012-06-20 20:24:14 UTC) #13
shalev
http://codereview.chromium.org/10559036/diff/10002/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): http://codereview.chromium.org/10559036/diff/10002/net/url_request/url_request_unittest.cc#newcode4059 net/url_request/url_request_unittest.cc:4059: TestURLRequest other_req(GURL("http://example.com"), &d, &context); On 2012/06/20 20:13:12, shalev wrote: ...
8 years, 6 months ago (2012-06-20 21:29:07 UTC) #14
mmenke
LGTM. Just on comment. http://codereview.chromium.org/10559036/diff/3033/net/url_request/url_request_test_util.h File net/url_request/url_request_test_util.h (right): http://codereview.chromium.org/10559036/diff/3033/net/url_request/url_request_test_util.h#newcode102 net/url_request/url_request_test_util.h:102: const scoped_ptr<net::URLRequestContext> context_; This is ...
8 years, 6 months ago (2012-06-21 17:37:58 UTC) #15
shalev
http://codereview.chromium.org/10559036/diff/3033/net/url_request/url_request_test_util.h File net/url_request/url_request_test_util.h (right): http://codereview.chromium.org/10559036/diff/3033/net/url_request/url_request_test_util.h#newcode102 net/url_request/url_request_test_util.h:102: const scoped_ptr<net::URLRequestContext> context_; On 2012/06/21 17:37:58, Matt Menke wrote: ...
8 years, 6 months ago (2012-06-21 20:06:00 UTC) #16
mmenke
http://codereview.chromium.org/10559036/diff/33002/net/url_request/url_request.cc File net/url_request/url_request.cc (right): http://codereview.chromium.org/10559036/diff/33002/net/url_request/url_request.cc#newcode184 net/url_request/url_request.cc:184: CHECK(deleted==1); nit: CHECK_EQ(1, deleted). Also, Google style guide recommends ...
8 years, 6 months ago (2012-06-21 20:19:38 UTC) #17
shalev
http://codereview.chromium.org/10559036/diff/33002/net/url_request/url_request.cc File net/url_request/url_request.cc (right): http://codereview.chromium.org/10559036/diff/33002/net/url_request/url_request.cc#newcode184 net/url_request/url_request.cc:184: CHECK(deleted==1); On 2012/06/21 20:19:38, Matt Menke wrote: > nit: ...
8 years, 6 months ago (2012-06-21 20:28:59 UTC) #18
James Hawkins
https://chromiumcodereview.appspot.com/10559036/diff/17004/net/url_request/url_request.cc File net/url_request/url_request.cc (right): https://chromiumcodereview.appspot.com/10559036/diff/17004/net/url_request/url_request.cc#newcode183 net/url_request/url_request.cc:183: int deleted = context_->url_requests()->erase(this); This line introduces a forward ...
8 years, 6 months ago (2012-06-25 16:28:02 UTC) #19
Vitaly Buka (NO REVIEWS)
lgtm for cloud_print/
8 years, 6 months ago (2012-06-25 17:43:48 UTC) #20
awong
LGTM remoting
8 years, 6 months ago (2012-06-25 17:53:24 UTC) #21
Jamie
8 years, 6 months ago (2012-06-25 17:55:22 UTC) #22
On 2012/06/25 17:53:24, awong wrote:
> LGTM remoting

Actually, this file has recently gone from remoting, which now uses
net::URLFetcher. Apologies for not calling this out sooner.

Powered by Google App Engine
This is Rietveld 408576698