Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index a41d56575d882457b693903b626f5960fe582cfb..14ab94e40f999fb941235a024381bcb19ed3491b 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -608,16 +608,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() { |