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

Unified Diff: webkit/child/webkitplatformsupport_impl.cc

Issue 181823006: Add DCHECK for shared_timer_suspended_ which shouldn't be negative (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Take review comment into consideration Created 6 years, 9 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/android/content_view_statics.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() ||
« no previous file with comments | « content/browser/android/content_view_statics.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698