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

Issue 1174943004: [CacheStorage] Use URLRequestContextGetter instead of URLRequestContext (Closed)

Created:
5 years, 6 months ago by jkarlin
Modified:
5 years, 6 months ago
Reviewers:
mmenke
CC:
chromium-reviews, darin-cc_chromium.org, jam, jkarlin+watch_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Use URLRequestContextGetter instead of URLRequestContext The CacheStorage classes shouldn't store raw pointers to URLRequestContext. Use the getter class instead. This is part of a cleanup to ensure that URLRequests are canceled before URLRequestContext is deleted. BUG=498563 Committed: https://crrev.com/a2bdc14d75b931ddee102b126248fc1aa473fb60 Cr-Commit-Position: refs/heads/master@{#333783}

Patch Set 1 #

Patch Set 2 : Nit #

Patch Set 3 : DCHECK that the URLRequestContext exists #

Patch Set 4 : Actually pass a getter #

Total comments: 14

Patch Set 5 : Address comments from PS4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -59 lines) Patch
M content/browser/cache_storage/cache_storage.h View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 1 2 3 4 8 chunks +9 lines, -8 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.h View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 3 4 9 chunks +24 lines, -18 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/cache_storage/cache_storage_context_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage_context_impl.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager.h View 1 2 3 4 5 chunks +7 lines, -8 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager.cc View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
jkarlin
Matt, PTAL, thanks!
5 years, 6 months ago (2015-06-10 15:21:21 UTC) #2
mmenke
On 2015/06/10 15:21:21, jkarlin wrote: > Matt, PTAL, thanks! I'm not following this CL...You seem ...
5 years, 6 months ago (2015-06-10 16:20:05 UTC) #3
jkarlin
On 2015/06/10 16:20:05, mmenke wrote: > On 2015/06/10 15:21:21, jkarlin wrote: > > Matt, PTAL, ...
5 years, 6 months ago (2015-06-10 16:28:44 UTC) #4
mmenke
https://codereview.chromium.org/1174943004/diff/60001/content/browser/cache_storage/cache_storage.h File content/browser/cache_storage/cache_storage.h (right): https://codereview.chromium.org/1174943004/diff/60001/content/browser/cache_storage/cache_storage.h#newcode51 content/browser/cache_storage/cache_storage.h:51: const scoped_refptr<net::URLRequestContextGetter>& request_context, Goes for the entire CL: Know ...
5 years, 6 months ago (2015-06-10 17:00:31 UTC) #5
jkarlin
Thanks, PTAL. https://codereview.chromium.org/1174943004/diff/60001/content/browser/cache_storage/cache_storage.h File content/browser/cache_storage/cache_storage.h (right): https://codereview.chromium.org/1174943004/diff/60001/content/browser/cache_storage/cache_storage.h#newcode51 content/browser/cache_storage/cache_storage.h:51: const scoped_refptr<net::URLRequestContextGetter>& request_context, On 2015/06/10 17:00:31, mmenke ...
5 years, 6 months ago (2015-06-10 18:26:04 UTC) #7
mmenke
LGTM
5 years, 6 months ago (2015-06-10 19:00:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174943004/100001
5 years, 6 months ago (2015-06-10 19:02:58 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 6 months ago (2015-06-10 20:15:56 UTC) #11
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 20:17:04 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a2bdc14d75b931ddee102b126248fc1aa473fb60
Cr-Commit-Position: refs/heads/master@{#333783}

Powered by Google App Engine
This is Rietveld 408576698