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

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: Rebase Created 5 years, 3 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 | « components/infobars/core/infobar_delegate.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « components/infobars/core/infobar_delegate.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698