| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 3513690b68ed38f048d4875a29825f1ec7e618d2..7b4ad05e39d06844c301bd4a983987f1de97b9fb 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -735,18 +735,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() {
|
| @@ -761,15 +751,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();
|
| }
|
|
|
|
|