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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 10985018: [cros] Fix MediaURLRequestContext initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl_map.cc
===================================================================
--- content/browser/storage_partition_impl_map.cc (revision 158246)
+++ content/browser/storage_partition_impl_map.cc (working copy)
@@ -266,12 +266,15 @@
make_scoped_refptr(partition->GetFileSystemContext()),
make_scoped_refptr(
ChromeBlobStorageContext::GetFor(browser_context_))));
-
- // We do not call InitializeURLRequestContext() for media contexts because,
- // other than the HTTP cache, the media contexts share the same backing
- // objects as their associated "normal" request context. Thus, the previous
- // call serves to initialize the media request context for this storage
- // partition as well.
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ base::Bind(
+ &InitializeURLRequestContext,
Charlie Reis 2012/09/25 18:29:59 Can you explain why this fixes the bug? When Albe
Charlie Reis 2012/09/26 00:47:57 Nevermind, I looked closer and figured it out. Th
+ make_scoped_refptr(partition->GetMediaURLRequestContext()),
+ make_scoped_refptr(partition->GetAppCacheService()),
+ make_scoped_refptr(partition->GetFileSystemContext()),
+ make_scoped_refptr(
+ ChromeBlobStorageContext::GetFor(browser_context_))));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698