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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix automation_util and thread issue. 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: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index dcda00cc39cfbb9a0d15edf99b499b27d30ce490..3527efc4ba339017d80c7259dad51094b95e01b8 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -298,7 +298,8 @@ RenderMessageFilter::RenderMessageFilter(
int render_process_id,
PluginService* plugin_service,
Profile* profile,
- RenderWidgetHelper* render_widget_helper)
+ RenderWidgetHelper* render_widget_helper,
+ const Extension* installed_app)
: resource_dispatcher_host_(g_browser_process->resource_dispatcher_host()),
plugin_service_(plugin_service),
profile_(profile),
@@ -312,7 +313,9 @@ RenderMessageFilter::RenderMessageFilter(
off_the_record_(profile->IsOffTheRecord()),
webkit_context_(profile->GetWebKitContext()),
render_process_id_(render_process_id) {
- request_context_ = profile_->GetRequestContext();
+ // Use a separate request context for hosted or packaged apps that have
+ // requested isolated storage.
+ request_context_ = profile_->GetRequestContextForPossibleApp(installed_app);
DCHECK(request_context_);
render_widget_helper_->Init(render_process_id_, resource_dispatcher_host_);

Powered by Google App Engine
This is Rietveld 408576698