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

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

Issue 11308024: Fixing guest processes to use the proper storage partition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment to test. Created 8 years, 2 months 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 31cc17b854824e4012c227e776014fe64bc5d47a..1a5531e8bd2608c844fecdce5e4f17b7d835bf83 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -760,11 +760,7 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess(
if (rph && rph->IsGuest()) {
// For guest processes (used by the browser tag), we need to isolate the
// storage.
- // TODO(nasko): Until we have proper storage partitions, create a
- // non-persistent context using the RPH's id.
- std::string id("guest-");
- id.append(base::IntToString(renderer_child_id));
- return GetRequestContextForStoragePartition(id);
+ return rph->GetStoragePartition()->GetURLRequestContext();
}
return GetRequestContext();
@@ -792,11 +788,7 @@ ProfileImpl::GetMediaRequestContextForRenderProcess(
if (rph && rph->IsGuest()) {
// For guest processes (used by the browser tag), we need to isolate the
// storage.
- // TODO(nasko): Until we have proper storage partitions, create a
- // non-persistent context using the RPH's id.
- std::string id("guest-");
- id.append(base::IntToString(renderer_child_id));
- return io_data_.GetIsolatedMediaRequestContextGetter(id);
+ return rph->GetStoragePartition()->GetMediaURLRequestContext();
}
return io_data_.GetMediaRequestContextGetter();

Powered by Google App Engine
This is Rietveld 408576698