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

Unified Diff: chrome/browser/sidebar/sidebar_container.cc

Issue 6880089: Don't hold the installed app in BrowserProcessRenderHost, since that's in content layer now. Ext... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browser tests Created 9 years, 8 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/chrome_render_message_filter.cc ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sidebar/sidebar_container.cc
===================================================================
--- chrome/browser/sidebar/sidebar_container.cc (revision 82593)
+++ chrome/browser/sidebar/sidebar_container.cc (working copy)
@@ -35,9 +35,11 @@
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);
+ ExtensionService* service = tab->profile()->GetExtensionService();
+ if (service) {
+ service->SetInstalledAppForRenderer(
+ sidebar_contents_->render_view_host()->process()->id(), extension);
+ }
}
sidebar_contents_->render_view_host()->AllowBindings(
BindingsPolicy::EXTENSION);
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698