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

Unified Diff: content/common/content_constants_internal.cc

Issue 1299513002: [Android] Add support for a hung renderer dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New resources, UMA, cleanup, etc... Created 5 years, 4 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/common/content_constants_internal.cc
diff --git a/content/common/content_constants_internal.cc b/content/common/content_constants_internal.cc
index afd5a1734f734e7693900de39763f3b527806afe..417803db8fb93c8b065577654c13c431c35cd67c 100644
--- a/content/common/content_constants_internal.cc
+++ b/content/common/content_constants_internal.cc
@@ -6,7 +6,13 @@
namespace content {
+#if defined(OS_ANDROID)
+const int64 kHungRendererDelayMs = 5000;
+#else
+// TODO(jdduke): Consider shortening this delay on desktop. It was originally
+// set to 5 seconds but was extended to accomodate less responsive plugins.
const int64 kHungRendererDelayMs = 30000;
+#endif
const uint16 kMaxPluginSideLength = 1 << 15;
// 8m pixels.

Powered by Google App Engine
This is Rietveld 408576698