summaryrefslogtreecommitdiffstats
path: root/content/browser/resource_context_impl.cc
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 19:07:08 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 19:07:08 +0000
commit10705a7b86405ba171f4b4237e43f70757b00441 (patch)
tree4ba50ed0f81684cd33d916dec0cd2da3eecf67e6 /content/browser/resource_context_impl.cc
parentf84278cd1a26aff14aff8d169b68b1edee950591 (diff)
downloadchromium_src-10705a7b86405ba171f4b4237e43f70757b00441.zip
chromium_src-10705a7b86405ba171f4b4237e43f70757b00441.tar.gz
chromium_src-10705a7b86405ba171f4b4237e43f70757b00441.tar.bz2
Ensure that isolated apps use the right cookies for media requests.
Also abstract out the media URLRequestContext logic from ProfileImpl. BUG=141172 TEST=Check cookies attached to video tag request inside an isolated app. Review URL: https://chromiumcodereview.appspot.com/10836305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/resource_context_impl.cc')
-rw-r--r--content/browser/resource_context_impl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/resource_context_impl.cc b/content/browser/resource_context_impl.cc
index f0ebf0f..8281aea 100644
--- a/content/browser/resource_context_impl.cc
+++ b/content/browser/resource_context_impl.cc
@@ -277,6 +277,8 @@ void InitializeResourceContext(BrowserContext* browser_context) {
// Add content's URLRequestContext's hooks.
// Check first to avoid memory leak in unittests.
+ // TODO(creis): Do equivalent initializations for isolated app and isolated
+ // media request contexts.
if (BrowserThread::IsMessageLoopValid(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -288,7 +290,7 @@ void InitializeResourceContext(BrowserContext* browser_context) {
base::Bind(&InitializeRequestContext,
resource_context,
make_scoped_refptr(
- browser_context->GetRequestContextForMedia())));
+ browser_context->GetMediaRequestContext())));
}
}