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

Unified Diff: chrome/browser/renderer_host/render_process_host.cc

Issue 66069: Don't overload the meaning of the RENDERER_PROCESS_TERMINATED notification, i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/render_process_host.h ('k') | chrome/browser/tab_contents/site_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_process_host.cc
===================================================================
--- chrome/browser/renderer_host/render_process_host.cc (revision 13189)
+++ chrome/browser/renderer_host/render_process_host.cc (working copy)
@@ -65,7 +65,6 @@
RenderProcessHost::RenderProcessHost(Profile* profile)
: max_page_id_(-1),
- notified_termination_(false),
pid_(-1),
profile_(profile) {
}
@@ -87,14 +86,9 @@
// When no other owners of this object, we can delete ourselves
if (listeners_.IsEmpty()) {
- if (!notified_termination_) {
- bool close_expected = true;
- NotificationService::current()->Notify(
- NotificationType::RENDERER_PROCESS_TERMINATED,
- Source<RenderProcessHost>(this),
- Details<bool>(&close_expected));
- notified_termination_ = true;
- }
+ NotificationService::current()->Notify(
+ NotificationType::RENDERER_PROCESS_TERMINATED,
+ Source<RenderProcessHost>(this), NotificationService::NoDetails());
if (pid_ >= 0) {
all_hosts.Remove(pid_);
pid_ = -1;
« no previous file with comments | « chrome/browser/renderer_host/render_process_host.h ('k') | chrome/browser/tab_contents/site_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698