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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2697423002: Add test for CHECK exit code behavior. (Closed)
Patch Set: rejig comments Created 3 years, 10 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 | « content/public/common/url_constants.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 2e9c7d131fbccf9a12eacfe4eaef8db1e9da4f8a..afda05747d424e005138b33c04e90cc079688211 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -547,6 +547,11 @@ void MaybeHandleDebugURL(const GURL& url) {
<< "Intentionally exhausting renderer memory because user navigated to "
<< url.spec();
ExhaustMemory();
+ } else if (url == kChromeUICheckCrashURL) {
+ LOG(ERROR)
+ << "Intentionally causing CHECK because user navigated to "
+ << url.spec();
+ CHECK(false);
}
#if defined(ADDRESS_SANITIZER) || defined(SYZYASAN)
« no previous file with comments | « content/public/common/url_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698