summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_webkitclient_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/renderer_webkitclient_impl.cc')
-rw-r--r--chrome/renderer/renderer_webkitclient_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/renderer_webkitclient_impl.cc b/chrome/renderer/renderer_webkitclient_impl.cc
index 5359f13..e8f4214 100644
--- a/chrome/renderer/renderer_webkitclient_impl.cc
+++ b/chrome/renderer/renderer_webkitclient_impl.cc
@@ -145,7 +145,7 @@ void RendererWebKitClientImpl::suddenTerminationChanged(bool enabled) {
// We should not get more enables than disables, but we want it to be a
// non-fatal error if it does happen.
DCHECK_GT(sudden_termination_disables_, 0);
- sudden_termination_disables_ = std::max(--sudden_termination_disables_, 0);
+ sudden_termination_disables_ = std::max(sudden_termination_disables_ - 1, 0);
if (sudden_termination_disables_ != 0)
return;
} else {