Index: webkit/child/webkitplatformsupport_impl.cc |
diff --git a/webkit/child/webkitplatformsupport_impl.cc b/webkit/child/webkitplatformsupport_impl.cc |
index c958c38c039db5aa9268de4a85f45fec2309a666..ceb9b8068680e7e4c35a7658e67dcb80afa13739 100644 |
--- a/webkit/child/webkitplatformsupport_impl.cc |
+++ b/webkit/child/webkitplatformsupport_impl.cc |
@@ -905,6 +905,8 @@ void WebKitPlatformSupportImpl::SuspendSharedTimer() { |
} |
void WebKitPlatformSupportImpl::ResumeSharedTimer() { |
+ DCHECK(shared_timer_suspended_ > 0); |
+ |
jamesr
2014/03/07 05:46:26
nit: DCHECK_GT() gives a slightly better error mes
|
// The shared timer may have fired or been adjusted while we were suspended. |
if (--shared_timer_suspended_ == 0 && |
(!shared_timer_.IsRunning() || |