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

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 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: chrome/browser/sidebar/sidebar_container.cc
diff --git a/chrome/browser/sidebar/sidebar_container.cc b/chrome/browser/sidebar/sidebar_container.cc
index 140dffed61238139a57d66534c967fed6513a89f..ebe2637c10a5188850a7186482be99210e4a0ee5 100644
--- a/chrome/browser/sidebar/sidebar_container.cc
+++ b/chrome/browser/sidebar/sidebar_container.cc
@@ -32,6 +32,9 @@ 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())
+ sidebar_contents_->render_view_host()->set_installed_app(extension);
sidebar_contents_->render_view_host()->AllowBindings(
BindingsPolicy::EXTENSION);
sidebar_contents_->set_delegate(this);

Powered by Google App Engine
This is Rietveld 408576698