diff options
-rw-r--r-- | content/browser/cancelable_request.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/content/browser/cancelable_request.h b/content/browser/cancelable_request.h index 009ca98..769439f 100644 --- a/content/browser/cancelable_request.h +++ b/content/browser/cancelable_request.h @@ -659,11 +659,13 @@ class CancelableRequest : public CancelableRequestBase { // Execute the callback. callback_->RunWithParams(param); + } - // Notify the provider that the request is complete. The provider will - // notify the consumer for us. + // Notify the provider that the request is complete. The provider will + // notify the consumer for us. Note that it is possible for the callback to + // cancel this request; we must check canceled again. + if (!canceled_.IsSet()) NotifyCompleted(); - } } // This should only be executed if !canceled_.IsSet(), |