Index: components/webdata/common/web_data_request_manager.cc |
diff --git a/components/webdata/common/web_data_request_manager.cc b/components/webdata/common/web_data_request_manager.cc |
index d03d841bf64fde0c3eeab115e74003cdadb33cbf..9f8186396978fda4e2601ecaf4657bc30bdf9dec 100644 |
--- a/components/webdata/common/web_data_request_manager.cc |
+++ b/components/webdata/common/web_data_request_manager.cc |
@@ -104,10 +104,7 @@ int WebDataRequestManager::GetNextRequestHandle() { |
void WebDataRequestManager::CancelRequest(WebDataServiceBase::Handle h) { |
base::AutoLock l(pending_lock_); |
RequestMap::iterator i = pending_requests_.find(h); |
- if (i == pending_requests_.end()) { |
- NOTREACHED() << "Canceling a nonexistent web data service request"; |
- return; |
- } |
+ DCHECK(i != pending_requests_.end()); |
i->second->Cancel(); |
pending_requests_.erase(i); |
} |
@@ -134,10 +131,7 @@ void WebDataRequestManager::RequestCompletedOnThread( |
{ |
base::AutoLock l(pending_lock_); |
RequestMap::iterator i = pending_requests_.find(request->GetHandle()); |
- if (i == pending_requests_.end()) { |
- NOTREACHED() << "Request completed called for an unknown request"; |
- return; |
- } |
+ DCHECK(i != pending_requests_.end()); |
// Take ownership of the request object and remove it from the map. |
pending_requests_.erase(i); |