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

Unified Diff: chrome/browser/notifications/balloon_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/notifications/balloon_host.cc
===================================================================
--- chrome/browser/notifications/balloon_host.cc (revision 82344)
+++ chrome/browser/notifications/balloon_host.cc (working copy)
@@ -206,8 +206,10 @@
const Extension* installed_app =
GetProfile()->GetExtensionService()->GetInstalledApp(
balloon_->notification().content_url());
- static_cast<BrowserRenderProcessHost*>(rvh->process())->set_installed_app(
- installed_app);
+ if (installed_app) {
+ GetProfile()->GetExtensionService()->SetInstalledAppForRenderer(
+ installed_app, rvh->process()->id());
+ }
} else if (enable_web_ui_) {
rvh->AllowBindings(BindingsPolicy::WEB_UI);
}

Powered by Google App Engine
This is Rietveld 408576698