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

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: 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
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..393fa36b9d23ad5fc993596f2aec45dd450d7242 100644
--- a/content/browser/frame_host/debug_urls.cc
+++ b/content/browser/frame_host/debug_urls.cc
@@ -80,6 +80,17 @@ bool HandleDebugURL(const GURL& url, PageTransition transition) {
return false;
}
+bool IsDebugURL(const GURL& url) {
+ return IsRendererDebugURL(url) ||
+ (url.is_valid() &&
+ (url.host() == kChromeUIBrowserCrashHost ||
Charlie Reis 2014/05/09 23:21:51 I worry about this getting stale when people add t
Ken Russell (switch to Gerrit) 2014/05/09 23:43:05 Added comments to both HandleDebugURL and IsDebugU
+ 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;

Powered by Google App Engine
This is Rietveld 408576698