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

Unified Diff: chrome/browser/extensions/extension_host.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: '' 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
Index: chrome/browser/extensions/extension_host.cc
===================================================================
--- chrome/browser/extensions/extension_host.cc (revision 82344)
+++ chrome/browser/extensions/extension_host.cc (working copy)
@@ -135,9 +135,8 @@
NULL);
render_view_host_->set_is_extension_process(true);
if (extension->is_app()) {
- BrowserRenderProcessHost* process = static_cast<BrowserRenderProcessHost*>(
- render_view_host_->process());
- process->set_installed_app(extension);
+ profile()->GetExtensionService()->SetInstalledAppForRenderer(
+ extension, render_view_host_->process()->id());
}
render_view_host_->AllowBindings(BindingsPolicy::EXTENSION);
if (enable_dom_automation_)

Powered by Google App Engine
This is Rietveld 408576698