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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 10836305: Ensure that isolated apps use the right cookies for media requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 8 years, 4 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
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index c50d8447fc9b96f65024b76fd8b4add013ef9d08..5f7fbdf5b254fec7983e1c50b111688c383a2230 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -281,9 +281,15 @@ net::URLRequestContextGetter*
}
net::URLRequestContextGetter*
- OffTheRecordProfileImpl::GetRequestContextForMedia() {
+ OffTheRecordProfileImpl::GetDefaultRequestContextForMedia() {
// In OTR mode, media request context is the same as the original one.
- return io_data_.GetMainRequestContextGetter();
+ return GetRequestContext();
+}
+
+net::URLRequestContextGetter*
+ OffTheRecordProfileImpl::GetRequestContextForMedia(int renderer_child_id) {
+ // In OTR mode, media request context is the same as the original one.
+ return GetRequestContextForRenderProcess(renderer_child_id);
}
net::URLRequestContextGetter*

Powered by Google App Engine
This is Rietveld 408576698