Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index d2d0cc2bfa0cf5e59e24a51e0d12e1de7f0f105d..4a4bacf418b193c80e8a194712099d26d5673d79 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -756,11 +756,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(); |
@@ -788,11 +784,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(); |