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

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 9 years, 9 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/renderer_host/browser_render_process_host.cc
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index e4698c9435339eb3337d11e43a3c82730aa65b34..fc7ed5cb56ca325462efe1f9f0866cccc8c036c9 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -243,8 +243,10 @@ namespace {
class RendererURLRequestContextOverride
: public ResourceMessageFilter::URLRequestContextOverride {
public:
- explicit RendererURLRequestContextOverride(Profile* profile)
- : request_context_(profile->GetRequestContext()),
+ RendererURLRequestContextOverride(Profile* profile,
+ const Extension* installed_app)
+ : request_context_(profile->GetRequestContextForPossibleApp(
+ installed_app)),
media_request_context_(profile->GetRequestContextForMedia()) {
}
@@ -440,11 +442,13 @@ void BrowserRenderProcessHost::CreateMessageFilters() {
new RenderMessageFilter(id(),
PluginService::GetInstance(),
profile(),
+ profile()->GetRequestContextForPossibleApp(
+ installed_app_),
widget_helper_));
channel_->AddFilter(render_message_filter);
scoped_refptr<RendererURLRequestContextOverride> url_request_context_override(
- new RendererURLRequestContextOverride(profile()));
+ new RendererURLRequestContextOverride(profile(), installed_app_));
ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
id(), ChildProcessInfo::RENDER_PROCESS,
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.h ('k') | chrome/browser/sidebar/sidebar_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698