Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index e385877a67f1d65e2739145f06b57ca7b7642c17..75337039f09edc32d5eb84ccf1e12e36744f92cb 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -609,16 +609,7 @@ net::URLRequestContextGetter* TestingProfile::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()) { |
- return GetRequestContextForStoragePartition( |
- storage_partition->GetPath(), true); |
- } |
- |
- return storage_partition->GetURLRequestContext(); |
+ return rph->GetStoragePartition()->GetURLRequestContext(); |
} |
void TestingProfile::CreateRequestContext() { |