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

Unified Diff: content/browser/frame_host/debug_urls.cc

Issue 277113002: Fixed flakiness of context_lost tests on GPU bots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed more review feedback from creis. Created 6 years, 7 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/browser/frame_host/debug_urls.h ('k') | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/debug_urls.cc
diff --git a/content/browser/frame_host/debug_urls.cc b/content/browser/frame_host/debug_urls.cc
index 4e9d49d32a3d7be43ab7cb5b882f1cfd17c3d0d7..f61ca2822c71991b1b15046b8cd16b9dd8c0fe7b 100644
--- a/content/browser/frame_host/debug_urls.cc
+++ b/content/browser/frame_host/debug_urls.cc
@@ -43,6 +43,9 @@ bool HandleDebugURL(const GURL& url, PageTransition transition) {
if (!(transition & PAGE_TRANSITION_FROM_ADDRESS_BAR))
return false;
+ // NOTE: when you add handling of any URLs to this function, also
+ // update IsDebugURL, below.
+
if (url.host() == kChromeUIBrowserCrashHost) {
// Induce an intentional crash in the browser process.
CHECK(false);
@@ -80,6 +83,19 @@ bool HandleDebugURL(const GURL& url, PageTransition transition) {
return false;
}
+bool IsDebugURL(const GURL& url) {
+ // NOTE: when you add any URLs to this list, also update
+ // HandleDebugURL, above.
+ return IsRendererDebugURL(url) ||
+ (url.is_valid() &&
+ (url.host() == kChromeUIBrowserCrashHost ||
+ url == GURL(kChromeUIGpuCleanURL) ||
+ url == GURL(kChromeUIGpuCrashURL) ||
+ url == GURL(kChromeUIGpuHangURL) ||
+ url == GURL(kChromeUIPpapiFlashCrashURL) ||
+ url == GURL(kChromeUIPpapiFlashHangURL)));
+}
+
bool IsRendererDebugURL(const GURL& url) {
if (!url.is_valid())
return false;
« no previous file with comments | « content/browser/frame_host/debug_urls.h ('k') | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698