| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 1d917aacfb813deb6de7e3c35a4e488b55e7da16..be492906f930066b020f031e3444c6fbe7b8a919 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -774,18 +774,8 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess(
|
| int renderer_child_id) {
|
| content::RenderProcessHost* rph = content::RenderProcessHost::FromID(
|
| renderer_child_id);
|
| - content::StoragePartition* storage_partition = rph->GetStoragePartition();
|
| -
|
| - // TODO(nasko): Remove this conditional, once webview tag creates a proper
|
| - // storage partition.
|
| - if (rph->IsGuest()) {
|
| - // For guest processes, we only allow in-memory partitions for now, so
|
| - // hardcode the parameter here.
|
| - return GetRequestContextForStoragePartition(
|
| - storage_partition->GetPath(), true);
|
| - }
|
|
|
| - return storage_partition->GetURLRequestContext();
|
| + return rph->GetStoragePartition()->GetURLRequestContext();
|
| }
|
|
|
| net::URLRequestContextGetter* ProfileImpl::GetMediaRequestContext() {
|
| @@ -800,15 +790,6 @@ ProfileImpl::GetMediaRequestContextForRenderProcess(
|
| renderer_child_id);
|
| content::StoragePartition* storage_partition = rph->GetStoragePartition();
|
|
|
| - // TODO(nasko): Remove this conditional, once webview tag creates a proper
|
| - // storage partition.
|
| - if (rph->IsGuest()) {
|
| - // For guest processes, we only allow in-memory partitions for now, so
|
| - // hardcode the parameter here.
|
| - return GetMediaRequestContextForStoragePartition(
|
| - storage_partition->GetPath(), true);
|
| - }
|
| -
|
| return storage_partition->GetMediaURLRequestContext();
|
| }
|
|
|
|
|