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

Unified Diff: chrome/browser/prerender/prerender_contents.cc

Issue 2435693005: Change the final status to APP_TERMINATING on shutdown (Closed)
Patch Set: . Created 4 years, 2 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 | « no previous file | chrome/browser/prerender/prerender_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_contents.cc
diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc
index 59007fa53c57623afe65cc189a352b051ffd679b..2e023f223a1560cf305e66ef5f0d8740c2cbd869 100644
--- a/chrome/browser/prerender/prerender_contents.cc
+++ b/chrome/browser/prerender/prerender_contents.cc
@@ -529,6 +529,11 @@ bool PrerenderContents::Matches(
}
void PrerenderContents::RenderProcessGone(base::TerminationStatus status) {
+ if (status == base::TERMINATION_STATUS_STILL_RUNNING) {
+ // The renderer process is being killed because of the browser/test
+ // shutdown, before the termination notification is received.
+ Destroy(FINAL_STATUS_APP_TERMINATING);
+ }
Destroy(FINAL_STATUS_RENDERER_CRASHED);
}
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698