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

Issue 7099004: Use the System URL Request Context in the web resource service instead of the default profile's c... (Closed)

Created:
9 years, 6 months ago by Miranda Callahan
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Use the System URL Request Context in the web resource service instead of the default profile's context. This change should be made because there will be no more default profile, because these services should be able to run without being attached to a specific profile, and because they should only ever fetch json data from controlled URLs. BUG=64339 TEST=all current web resource tests continue to work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88400

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -17 lines) Patch
M chrome/browser/web_resource/gpu_blacklist_updater.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/web_resource/promo_resource_service.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/web_resource/promo_resource_service.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/web_resource/web_resource_service.h View 1 4 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/web_resource/web_resource_service.cc View 5 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Miranda Callahan
willchan for proper system_url_context call, and jstritar to make sure I didn't do anything foolish ...
9 years, 6 months ago (2011-06-08 18:29:31 UTC) #1
willchan no longer on Chromium
Code looks great. I just want to doublecheck exactly what WebResourceService does before I OK ...
9 years, 6 months ago (2011-06-08 19:13:27 UTC) #2
Miranda Callahan
On 2011/06/08 19:13:27, willchan wrote: > Code looks great. I just want to doublecheck exactly ...
9 years, 6 months ago (2011-06-08 19:17:35 UTC) #3
jstritar
LGTM (as long as willchan is satisfied with the use of the system URLRequestContext)
9 years, 6 months ago (2011-06-08 19:18:31 UTC) #4
willchan no longer on Chromium
LGTM. Is it possible to add documentation that WebResourceService should never load Profile-specific content? To ...
9 years, 6 months ago (2011-06-08 19:38:10 UTC) #5
Miranda Callahan
9 years, 6 months ago (2011-06-08 21:06:42 UTC) #6
On 2011/06/08 19:38:10, willchan wrote:
> LGTM. Is it possible to add documentation that WebResourceService
> should never load Profile-specific content? To me (I'm not familiar
> with the code though) it looks non-obvious that all content must be
> profile agnostic.
> 
> On Wed, Jun 8, 2011 at 10:17 PM,  <mailto:mirandac@chromium.org> wrote:
> > On 2011/06/08 19:13:27, willchan wrote:
> >>
> >> Code looks great. I just want to doublecheck exactly what
> >> WebResourceService
> >> does before I OK the use of the system URLRequestContext for this. Can you
> >> clarify exactly what content we fetch with this?
> >
> > Sure -- this is used to download JSON data from a server to use for
> > dynamically
> > configuring things in the browser. &nbsp;For example, it downloads from
these
> > sites
> > now:
> >
> > promo resources:
> > https://www.google.com/support/chrome/bin/topic/1142433/inproduct?hl=
> >
> > gpu blacklist resources:
> > https://dl.google.com/dl/edgedl/chrome/gpu/software_rendering_list.json
> >
> > http://codereview.chromium.org/7099004/
> >

Added an explanatory comment pointing back to this code review. Thanks!

Powered by Google App Engine
This is Rietveld 408576698