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

Issue 2480563002: Remove URLRequest::OrphanJob(). (Closed)

Created:
4 years, 1 month ago by mmenke
Modified:
4 years, 1 month ago
Reviewers:
falken, xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove URLRequest::OrphanJob(). This is a relic of a bygone era, when URLRequestJob was refcounted, and could outlive its URLRequest. Now we can just delete the URLRequestJob. Also remove a couple checks in URLRequestHttpJob and ServiceWorkerURLRequestJob that their request is not NULL, as the checks are no longer needed, for the same reason. BUG=NONE Committed: https://crrev.com/7ce675a75cf2f2e78a45e680c4cf22d8df521484 Cr-Commit-Position: refs/heads/master@{#430301}

Patch Set 1 #

Patch Set 2 : Remove method definition, too. :) #

Total comments: 1

Patch Set 3 : Fix ServiceWorker #

Total comments: 3

Patch Set 4 : Response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -47 lines) Patch
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 2 chunks +1 line, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_write_to_cache_job.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request.h View 1 chunk +0 lines, -5 lines 0 comments Download
M net/url_request/url_request.cc View 1 3 chunks +6 lines, -18 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 3 chunks +10 lines, -15 lines 0 comments Download

Messages

Total messages: 40 (28 generated)
mmenke
Not exactly an important CL, just noticed I missed some stuff when removing reference counting ...
4 years, 1 month ago (2016-11-03 20:31:06 UTC) #8
mmenke
[+falken]: PTAL. https://codereview.chromium.org/2480563002/diff/40001/content/browser/service_worker/service_worker_write_to_cache_job.cc File content/browser/service_worker/service_worker_write_to_cache_job.cc (right): https://codereview.chromium.org/2480563002/diff/40001/content/browser/service_worker/service_worker_write_to_cache_job.cc#newcode75 content/browser/service_worker/service_worker_write_to_cache_job.cc:75: DCHECK_EQ(did_notify_started_, did_notify_finished_); This is not a guarantee ...
4 years, 1 month ago (2016-11-03 21:01:18 UTC) #14
mmenke
Oops, falken: PTAL at content/browser/service_worker/service_worker_write_to_cache_job.cc
4 years, 1 month ago (2016-11-03 21:01:48 UTC) #15
falken
lgtm. This also means we can remove the following code in ServiceWorkerURLRequestJob::DidDispatchFetchEvent, right? // Check ...
4 years, 1 month ago (2016-11-04 05:28:50 UTC) #22
mmenke
On 2016/11/04 05:28:50, falken wrote: > lgtm. This also means we can remove the following ...
4 years, 1 month ago (2016-11-04 15:03:10 UTC) #24
xunjieli
lgtm. Is URLRequestJob::Kill() something we can get rid of in the future? After removal of ...
4 years, 1 month ago (2016-11-07 15:09:08 UTC) #30
mmenke
On 2016/11/07 15:09:08, xunjieli wrote: > lgtm. > Is URLRequestJob::Kill() something we can get rid ...
4 years, 1 month ago (2016-11-07 15:12:46 UTC) #31
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/2480563002/60001
4 years, 1 month ago (2016-11-07 15:13:13 UTC) #34
xunjieli
On 2016/11/07 15:12:46, mmenke wrote: > On 2016/11/07 15:09:08, xunjieli wrote: > > lgtm. > ...
4 years, 1 month ago (2016-11-07 15:28:21 UTC) #35
mmenke
On 2016/11/07 15:28:21, xunjieli wrote: > On 2016/11/07 15:12:46, mmenke wrote: > > On 2016/11/07 ...
4 years, 1 month ago (2016-11-07 15:30:48 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-07 17:09:00 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 17:13:43 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7ce675a75cf2f2e78a45e680c4cf22d8df521484
Cr-Commit-Position: refs/heads/master@{#430301}

Powered by Google App Engine
This is Rietveld 408576698