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

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

Issue 11320018: Fixing guest processes to use the proper storage partition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 d2d0cc2bfa0cf5e59e24a51e0d12e1de7f0f105d..4a4bacf418b193c80e8a194712099d26d5673d79 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -756,11 +756,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();
@@ -788,11 +784,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