Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 31cc17b854824e4012c227e776014fe64bc5d47a..1a5531e8bd2608c844fecdce5e4f17b7d835bf83 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -760,11 +760,7 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess( |
if (rph && rph->IsGuest()) { |
// For guest processes (used by the browser tag), we need to isolate the |
// storage. |
- // TODO(nasko): Until we have proper storage partitions, create a |
- // non-persistent context using the RPH's id. |
- std::string id("guest-"); |
- id.append(base::IntToString(renderer_child_id)); |
- return GetRequestContextForStoragePartition(id); |
+ return rph->GetStoragePartition()->GetURLRequestContext(); |
} |
return GetRequestContext(); |
@@ -792,11 +788,7 @@ ProfileImpl::GetMediaRequestContextForRenderProcess( |
if (rph && rph->IsGuest()) { |
// For guest processes (used by the browser tag), we need to isolate the |
// storage. |
- // TODO(nasko): Until we have proper storage partitions, create a |
- // non-persistent context using the RPH's id. |
- std::string id("guest-"); |
- id.append(base::IntToString(renderer_child_id)); |
- return io_data_.GetIsolatedMediaRequestContextGetter(id); |
+ return rph->GetStoragePartition()->GetMediaURLRequestContext(); |
} |
return io_data_.GetMediaRequestContextGetter(); |