| Index: content/browser/cancelable_request.cc
|
| diff --git a/content/browser/cancelable_request.cc b/content/browser/cancelable_request.cc
|
| index 5e36d89dfbeaf8734dcd41482b8e85a6e6c8a41b..9e25dacd71ac56753b917324a91606bfabbc897b 100644
|
| --- a/content/browser/cancelable_request.cc
|
| +++ b/content/browser/cancelable_request.cc
|
| @@ -11,9 +11,9 @@ CancelableRequestProvider::CancelableRequestProvider()
|
| CancelableRequestProvider::~CancelableRequestProvider() {
|
| // There may be requests whose result callback has not been run yet. We need
|
| // to cancel them otherwise they may try and call us back after we've been
|
| - // deleted, or do other bad things. This can occur on shutdown (or profile
|
| + // deleted, or do other bad things. This can occur on shutdown (or context
|
| // destruction) when a request is scheduled, completed (but not dispatched),
|
| - // then the Profile is deleted.
|
| + // then the context is deleted.
|
| base::AutoLock lock(pending_request_lock_);
|
| while (!pending_requests_.empty())
|
| CancelRequestLocked(pending_requests_.begin());
|
|
|