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

Unified Diff: content/child/blink_platform_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: fix presubmit warning 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 2fd314fd8f2d3bcb2ed783ec154a7840d6ffad9e..724188ad4cba278b73ad6e4a4937c467ec418652 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -902,6 +902,8 @@ void BlinkPlatformImpl::SuspendSharedTimer() {
}
void BlinkPlatformImpl::ResumeSharedTimer() {
+ DCHECK_GT(shared_timer_suspended_, 0);
+
// 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 | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698