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

Unified Diff: chrome/browser/sidebar/sidebar_container.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
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sidebar/sidebar_container.cc
diff --git a/chrome/browser/sidebar/sidebar_container.cc b/chrome/browser/sidebar/sidebar_container.cc
index cab6dc216637dda5cb8ac293ae543e1c30dbc1b0..529eb8f16e27a0f5e8da330278f91660a62ec336 100644
--- a/chrome/browser/sidebar/sidebar_container.cc
+++ b/chrome/browser/sidebar/sidebar_container.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/renderer_host/browser_render_process_host.h"
#include "chrome/common/bindings_policy.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_resource.h"
@@ -32,6 +33,12 @@ SidebarContainer::SidebarContainer(TabContents* tab,
sidebar_contents_.reset(
new TabContents(tab->profile(), NULL, MSG_ROUTING_NONE, NULL, NULL));
sidebar_contents_->render_view_host()->set_is_extension_process(true);
+ const Extension* extension = GetExtension();
+ if (extension && extension->is_app()) {
+ BrowserRenderProcessHost* process = static_cast<BrowserRenderProcessHost*>(
+ sidebar_contents_->render_view_host()->process());
+ process->set_installed_app(extension);
+ }
sidebar_contents_->render_view_host()->AllowBindings(
BindingsPolicy::EXTENSION);
sidebar_contents_->set_delegate(this);
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698