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

Issue 22795006: Remove WorkerPool dependency from URLRequestFileJob. (Closed)

Created:
7 years, 4 months ago by earthdok
Modified:
7 years, 4 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Remove WorkerPool dependency from URLRequestFileJob. Make net::URLRequestFileJob pass a TaskRunner to FileStream, instead of using a deprecated FileStream constructor that depends on WorkerPool. This TaskRunner is obtained from the blocking pool where possible. Also, remove two explicit uses of WorkerPool in net/url_request/ and chrome/browser/. Removes dependency on deprecated code. Also fixes memory leaks in unit tests caused by FileStream destruction tasks not running to completion in WorkerPool. BUG=248513, 251774 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218273

Patch Set 1 #

Patch Set 2 : fix net unittests #

Patch Set 3 : fix more compile errors #

Patch Set 4 : fix even more compile errorrs #

Patch Set 5 : fix include #

Patch Set 6 : fix android include #

Total comments: 5

Patch Set 7 : address akalin's suggestions #

Total comments: 5

Patch Set 8 : address akalin's nits #

Patch Set 9 : fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -207 lines) Patch
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_protocols.cc View 7 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_resource_protocols.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/net/load_timing_browsertest.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 2 chunks +6 lines, -1 line 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M content/test/net/url_request_mock_http_job.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M content/test/net/url_request_prepackaged_interceptor.cc View 2 chunks +6 lines, -1 line 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/url_request/file_protocol_handler.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -1 line 0 comments Download
M net/url_request/file_protocol_handler.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 3 chunks +10 lines, -2 lines 0 comments Download
M net/url_request/url_request_file_job.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -1 line 0 comments Download
M net/url_request/url_request_file_job.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -10 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 164 chunks +170 lines, -167 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
earthdok
Please take a look. akalin: net/ sync/ mmenke: content/test/net/ jochen: chrome/ content/shell/ benm: android_webview/ scottbyer: ...
7 years, 4 months ago (2013-08-15 14:58:50 UTC) #1
mmenke
content/test/net/ LGTM. On 2013/08/15 14:58:50, earthdok wrote: > Please take a look. > > akalin: ...
7 years, 4 months ago (2013-08-15 15:03:46 UTC) #2
benm (inactive)
aw lgtm
7 years, 4 months ago (2013-08-15 16:27:54 UTC) #3
akalin
a few comments https://codereview.chromium.org/22795006/diff/47001/net/url_request/file_protocol_handler.h File net/url_request/file_protocol_handler.h (right): https://codereview.chromium.org/22795006/diff/47001/net/url_request/file_protocol_handler.h#newcode26 net/url_request/file_protocol_handler.h:26: FileProtocolHandler(const scoped_refptr<base::TaskRunner>& task_runner); explicit (also, all ...
7 years, 4 months ago (2013-08-15 17:43:05 UTC) #4
earthdok
FTR, my only doubt about this CL is that we're no longer differentiating between slow ...
7 years, 4 months ago (2013-08-15 17:57:01 UTC) #5
akalin
On 2013/08/15 17:57:01, earthdok wrote: > FTR, my only doubt about this CL is that ...
7 years, 4 months ago (2013-08-15 21:23:19 UTC) #6
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-16 09:05:41 UTC) #7
earthdok
Fred: all comments addressed, ptal
7 years, 4 months ago (2013-08-16 13:55:57 UTC) #8
akalin
lgtm after nits https://codereview.chromium.org/22795006/diff/65001/net/url_request/file_protocol_handler.cc File net/url_request/file_protocol_handler.cc (right): https://codereview.chromium.org/22795006/diff/65001/net/url_request/file_protocol_handler.cc#newcode8 net/url_request/file_protocol_handler.cc:8: #include "base/memory/ref_counted.h" no need for this ...
7 years, 4 months ago (2013-08-16 21:22:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/earthdok@chromium.org/22795006/74001
7 years, 4 months ago (2013-08-19 08:18:50 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-19 08:42:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/earthdok@chromium.org/22795006/98001
7 years, 4 months ago (2013-08-19 08:54:16 UTC) #12
commit-bot: I haz the power
7 years, 4 months ago (2013-08-19 13:14:36 UTC) #13
Message was sent while issue was closed.
Change committed as 218273

Powered by Google App Engine
This is Rietveld 408576698