Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2342)

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 11234032: Webview tag creation should be using storage partitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added IndexedDB test. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698