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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1245903004: Switch RenderFrameHostManager to use RenderProcessHostObserver, remove NOTIFICATION_RENDERER_PROCES… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 5 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: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index e6df625995260a1880ca0af522c5ceaff11abee8..e6329d7c4994c94aa284ab530b1a30eda76d00da 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -2220,10 +2220,8 @@ void RenderProcessHostImpl::OnShutdownRequest() {
// Notify any contents that might have swapped out renderers from this
// process. They should not attempt to swap them back in.
- NotificationService::current()->Notify(
- NOTIFICATION_RENDERER_PROCESS_CLOSING,
- Source<RenderProcessHost>(this),
- NotificationService::NoDetails());
+ FOR_EACH_OBSERVER(RenderProcessHostObserver, observers_,
+ RenderProcessWillExit(this));
mojo_application_host_->WillDestroySoon();

Powered by Google App Engine
This is Rietveld 408576698